How can I split a text element into different spans for each word and apply custom animations in Webflow?

Published on
September 22, 2023

To split a text element into different spans for each word and apply custom animations in Webflow, follow these steps:

  1. Select the text element: Identify the text element that you want to split into different spans for each word. This can be a heading or paragraph element.

  2. Wrap the text element in a div: In order to apply custom animations to each word individually, you need to wrap the text element in a parent div. This will allow you to target each word separately.

  3. Add a class to the parent div: Give the parent div a class name by selecting it and going to the Styles panel on the right-hand side. Click on the "+" icon to create a new class. This class will be used to style and animate the individual word spans.

  4. Apply the Split Text plugin: Webflow does not have built-in functionality to split text into individual spans, but you can achieve this using a third-party plugin called SplitText. To add the SplitText plugin to your project, go to the project settings, click on the "Plugins" tab, and search for "SplitText". Install and activate the plugin.

  5. Clone the text element: On the canvas, duplicate the text element as many times as there are words in the text. For example, if you have a sentence with six words, you'll need to duplicate the text element six times.

  6. Delete unnecessary words: In each duplicated text element, delete all the words except one. Leave only one word in each duplicated element, making sure to keep them in the correct order.

  7. Apply the SplitText class: Select each of the duplicated text elements one by one and apply the SplitText class that you created earlier to each of them. This will split each individual word into its own span.

  8. Style and animate each word span: Now that each word is split into its own span, you can style and animate them individually. Select one of the word spans, go to the Styles panel, and apply any desired styling properties such as color, font size, or animation.

  9. Repeat step 8 for each word span: Repeat step 8 for each remaining word span, applying the desired styling and animation properties to each one individually.

  10. Preview and fine-tune the animations: Preview your animation by clicking on the "Preview" button at the top of the designer. Fine-tune the animations by adjusting the timing, easing, and other animation properties as needed.

  11. Publish your site: Once you are satisfied with the result, publish your site to make the animated text visible on the live website.

Additional resources:

Can I split text elements into individual spans for each word in Webflow?

How can I animate each word individually in a text element using Webflow?

Is there a built-in feature in Webflow to split text into separate spans for each word?