Add a GSAP highlight effect to any text element in seconds
Transform your Webflow text elements with GSAP Highlight Effects in seconds. These effects are ideal for drawing attention to important content, creating dynamic experiences, and adding that extra touch of creativity to your design.
These GSAP Highlight Boosters can be added effortlessly using our Webflow Boosters App or manually by following the instructions below.
To enable the GSAP animations, you'll need to add the script to your Webflow project. Follow the instructions below to add the scripts to your project:
<head>
section of your Webflow custom code settings. (Need help with custom code? Learn more here).<!-- Flowbase Booster [Text Highlight] -->
<script src="https://cdn.jsdelivr.net/npm/@flowbase-co/boosters-gsap-text-highlight@1/dist/gsap-text-highlight.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/@flowbase-co/boosters-gsap@3/dist/gsap.min.js" type="text/javascript"></script>
To animate your text element (or span), simply add the following attributes. Any effect-specific attributes will be detailed under their respective effect headings below.
These attributes are essential and must be applied to the text element you want to animate:
fb-text-highlight
= true
Default: true
fb-text-highlight-type
= 1-12
Default: 1
These attributes are optional; if not specified, their default values will apply:
fb-text-highlight-offset
= 0-100
Default: 0
fb-text-highlight-speed
= 0.5-2
Default: 1
fb-text-highlight-once
= true | false
Default: false
fb-text-highlight-direction
= both | forward
Default: both
Browse through the effects below to preview and choose the one that fits your design. Some effects include specific attributes for customization, such as color and other elements. You’ll find these unique attributes detailed alongside each effect.
This effect dynamically warps and bends text into position, perfect for short snippets or emphasizing specific phrases. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 1
Adds a subtle shimmer across the text for a sleek and modern effect. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 2
Highlight text with customizable colors and shadows. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 3
fb-text-highlight-color-end
= color (rgb | hex | name)
Default: #d686c1
fb-text-highlight-shadow-color
= color (rgb | hex | name)
Default: #ffdbf5
Applies a ripple effect with dual-color customization. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 4
fb-text-highlight-color-end
= color (rgb | hex | name)
Default: #49af42
fb-text-highlight-color-end-alt
= color (rgb | hex | name)
Default: #4252af
Adds a smooth background fill around text. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 5
fb-text-highlight-multi-line
= true | false
Default: false
fb-text-highlight-class
= class-name
fb-text-highlight-bg-color
= color (rgb | hex | name)
Default: #6a5ace
fb-text-highlight-bg-radius
= value (px | rem | em | %)
Default: 8px
fb-text-highlight-bg-inset
= value (px | rem | em | %)
Default: -2px -8px
Combines text and background animation with a smooth left-to-right reveal. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 6
fb-text-highlight-multi-line
= true | false
Default: false
fb-text-highlight-class
= class-name
fb-text-highlight-bg-color
= color (rgb | hex | name)
Default: #dc764c
fb-text-highlight-bg-radius
= value (px | rem | em | %)
Default: 8px
fb-text-highlight-bg-inset
= value (px | rem | em | %)
Default: -2px -8px
Fills text from the top with a staggered animation. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 7
fb-text-highlight-multi-line
= true | false
Default: false
fb-text-highlight-class
= class-name
fb-text-highlight-bg-color
= color (rgb | hex | name)
Default: #dc764c
fb-text-highlight-bg-radius
= value (px | rem | em | %)
Default: 8px
fb-text-highlight-bg-inset
= value (px | rem | em | %)
Default: -2px -8px
Each word falls into view for a playful animation style. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 8
fb-text-highlight-color-end
= color (rgb | hex | name)
Default: #c3c58c
Replaces original text with a highlighted version while fading the original characters into a smooth smoke-like effect. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 9
fb-text-highlight-color-end
= color (rgb | hex | name)
Default: #a86088
Applies a random sparkle or glow to individual characters of the text. Perfect for playful or celebratory designs. You can specify multiple colors separated by commas. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 10
fb-text-highlight-colors
= colors seperated by comma (rgb | hex | name)
Default: #ff0000
Creates duplicates of the text and animates them into view with a staggered fade effect. Great for creating a layered, dynamic look. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 11
fb-text-highlight-duplicates
= number > 1
Default: 8
fb-text-highlight-color-end
= color (rgb | hex | name)
Default: #fff
Adds animated lines around the text, combined with a blur effect through the text for a futuristic aesthetic. Ideal for tech-inspired designs or eye-catching headers. Preview Effect
fb-text-highlight
= true
fb-text-highlight-type
= 12
fb-text-highlight-multi-line
= true | false
Default: false
fb-text-highlight-class
= class-name
fb-text-highlight-bg-color
= color (rgb | hex | name)
Default: #6dd7e6
fb-text-highlight-bg-inset
= value (px | rem | em | %)
Default: 0px -4px
fb-text-highlight-shadow-color
= color (rgb | hex | name)
Default: #ffdbf5
With the necessary attributes added to your text element and the scripts installed, you're all set to publish your site. Start by publishing your Webflow project to the staging domain, then test to ensure the animation is working as expected.
If you encounter any issues, open the Chrome Developer Console to check for errors or warnings that might help pinpoint the problem.
Easily add these effects—and more—directly using our Booster app. The app streamlines the process by managing and installing scripts and attributes for you. Plus, it keeps your setup up-to-date with automatic updates whenever we release new scripts or effects.
You can download the Booster app for free from the Webflow App Store.
These effects are available for both personal and commercial use. They are provided to you free of charge, with modifications made to the original code from Codrops and GSAP. The respective licenses are as follows:
Your support means the world to us! In just 10 seconds, you can make a big difference:
Thank you for being awesome! 🌟