How to Add Animation to Text in WordPress

how to add animation to text

Fancy text styles grab viewers’ attention quickly. WordPress website owners often ask how to add animation to text. Absolutely, you will find several methods to design your WordPress site texts. You can manually add HTML CSS effects which require a bit more code. But coding is a great way to add custom animation to your site. Again, a plugin with the best widget is relatively handy, effective, and also popular.

However, we have tried to cover both techniques as easily as we can. If you run a WordPress site then take time to read the blog and understand the processes. Following the steps and instructions properly will let you customize your own animation smoothly.

How to Add Animated Text Effects in WordPress

Animated text effects can be used to add flair and personality to your WordPress site. In this tutorial, we’ll show you the ways of adding these effects; but before that, you must have a clear idea about an animated text and its role; let’s learn!

What is an Animated Text Effect and how does it appear?

Animated text effects are a great way to add a little fun and excitement to your articles and titles as well. When you choose to use a fancy animated text effect, you can create various effects. Some effects are simple as changing the text color or size, while some are detailed animations such as blinking or flashing text.

Animated text is a bit different from regular text. Usually, this type of text does not move on its own. Instead, it has an effect that makes it appear as if it is moving across the screen. So, the fancy texts make people more likely to click on the content, links or open emails.

The Role of Animated Texts in Your Website

There are different types of animated text effects available in WordPress themes, but they all share the same basic functionality. They change the color or style of text and simply change a test style. For example, you can change a “call-to-action” button with a red background and white text that says “Click here!” when clicked on.

The animated heading or a hero section with fancy texts plays the following roles-

  • Makes your designs visually more interesting.
  • Highlight special offers and important information.
  • Makes your product features noticeable.
  • Makes a website more interactive and promotes the business.

The Most Easy Ways to Add Animated Text Effects

Using a WordPress Plugin

Today’s market gives you different kinds of plugins to make text styling tasks easier. ElementsKit is such a powerful plugin as well as addon for Elementor page builder. With ElementsKit, you will get everything under one hood.

Fancy animated text is an impressive widget presented by ElementsKit pro. 

Login to your Dashboard -> Select any Page or Post -> Click edit with ElementsKit -> Search ElementsKit Fancy Animation Text widget -> Drag and Drop the widget

Content Section

The part is called the Fancy Text part, it contains the following fields-

how to add animation to text

Do you know why ElementsKit is so popular? 🤔
Check here 👉 World’s Top Ranking Websites Built with ElementsKit


  • Animation Style – Here the two options are Text or SVG, both allow you to make different animation styles.
  • Animation Type – Based on your animation type you will get various choices here.
  • Reveal Duration (ms) – You can set the animation duration in milliseconds using the option box.
  • Reveal Animation Delay (ms) – Adjust the animation delay time here. It specifies an animation can start later, immediately from its beginning, or instantly and partway through the animation.


  • Prefix Text – You need to write the prefix content here that you want to display. It means it will be written before the fancy animation.
  • Fancy Lists – Add items here for fancy animation.
  • Suffix Text – Write the suffix content you want to display. So, it will be specified after the fancy animation.
Use ElementsKit Fancy Animation Text widget to save your time.
  • Title HTML Tag – Select the HTML tag of the content here.
  • Link (Optional) – Add any link if you want the users to redirect to any other location.

Style Section

ElementsKit Fancy Animation Text widget is handy and full of styling choices.
  • Heading Text – Utilize this field to adjust heading alignment, typography, color, etc.
  • Fancy Text Lists – Use this field to adjust typography, color, and padding.
  • Fancy Cursor – You can give the cursor a fancy look with color, width, and height using this field.

After editing and styling all your required statements click update and see the changes from the front end. An example is –

ElementsKit Fancy Animation Text widget helps you to create engaging animations.

Applying CSS

When creating CSS animations in WordPress, keep the following basic yet important things in mind:

  • Setting a right animation-name – This is the name that will be displayed on an element when it is moved by a CSS animation. For example, if you have a button with an animation named “fadeIn”, this would be the value that you would use for this property.
  • Animation-duration – This is the number of seconds that an animation will take to complete. You can also set this to none or 0 to make an animation last indefinitely or until something else happens (like a page load).
  • Animation-timing-function – This controls how the element moves from one spot to another based on how long it takes for a specific amount of time (in milliseconds). For example, if you set this property to ease-out, then your element will start moving slowly and then speed up at the end of its duration before starting again at the beginning.
  • Animation-delay – This is a value that specifies what number of milliseconds should be added after an animation has finished before it starts again (for example, 1s).
  • Animation-iteration-count – This is the amount of time you need to play the animation. Using CSS property you can count this iteration.
  • Animations-direction – It is the order or direction in which an animation should be played. It can be normal, reverse, alternate, and alternate-reverse.
  • Animation-fill-mode – These values specify how an element should be displayed. It can be before and after an animation has been applied to it.
  • Knowing @keyframes – It specifies the properties of the animation that change over the course and also the values that those properties should take. For instance: 
@keyframes example {
  0%   {background-color: red;}
  25%  {background-color: yellow;}
  50%  {background-color: blue;}
  100% {background-color: green;}

Generally, percentages are used to indicate the timing of the animation. The keyframe above demonstrates that the element’s background color will transform 25 percent of the way from red to yellow, through the animation.

However, from and to can be used in place of 0% and 100%, respectively.

A ‘timeline’ segment plays a great role to grab the customers’ attention and influence them to visit your website! Read more 👉 Here!

Creating an animate.css File

You have to create a separate file first with all the necessary properties, in the text editor you work in. You can choose the keyframes for any animation. Next, you have to put them together with particular CSS classes to apply with any text on your WordPress site.

Start with writing a simple code to your CSS file. A sample code for an animation text may look like-

```@keyframes MyAnimation {
from {
opacity: 0;
transform: rotate(20deg);
animation-duration: 3s;
to {opacity: 1;}
transform: rotate(0deg); 

Now to bind this keyframe to a CSS class we have set a text named MyAnimation. So, just after the above code you need to put the below code in the file.

.MyAnimation {
 animation-name: MyAnimation;

You can find all the basic CSS animation knowledge and practice the codes here!

You can repeat this procedure to create as many as possible animations according to your needs. Then, save the file as animate.css. Alternatively, you can download the Animate.css file. It is a well-liked file that contains the keyframes and CSS classes for tons of popular animation designs. Moreover, using the file will lessen the pain of coding the complex animation.

The above code will animate the text of your h1 tagMyAnimation’. You can change the duration of the animation by changing the “3s” to a different value. You can also change the colors by changing the hex values. Once you have the CSS file saved, you can make further changes to the appearance of your website, you can edit the CSS file. You can change the font, the size of the text, and the color of the text by editing the CSS file. You can also change the background color and the size of the header by changing the CSS file.

Loading Your animate.css File to WordPress Site

After you are done with the file work, upload it to your theme’s directory. We have divided the whole process in three steps,


Go to the site using File Transfer Protocol (FTP) -> Choose the FTP client (FileZilla, WinSCP, Cyberduck, etc.) ->  Select the necessary credentials in your hosting account.


Access to your public_html directory -> Navigate to wp-content – >  Themes -> Select the folder of the active or child theme


Now, search for a subdirectory named css. If you get it then upload your animate.css or animate.min.css file from the Animate.css file with the subdirectory. 

However, if you don’t have the subdirectory folder you can easily create a new one. For that, just after loading the file do a simple editing to create the new file and it is done.

Call the Animate Stylesheet Via functions.php

You will find the functions.php file in your active theme folder. Now, you are required to add this snippet of code to call the Animate Stylesheet:

add_action( 'wp_enqueue_scripts', 'wpb_animate_styles' ); 
function wpb_animate_styles() {
 wp_enqueue_style( 'animate-css', get_stylesheet_directory_uri() . '/css/animate.css', '3.5.0', 'all');

Remember, if you used the animate.min.css file from Animate.css, you’ll need to write animate.min.css in the end line instead of animate.css. After saving all the changes go to your WordPress dashboard.

Apply Animations Using CSS Classes

So now it is possible to apply any class you want in the animate.css file to see different animation effects in posts and pages. Also, the Animate.css file allows you to reference a complete list of all.

Finally, Select a post or page in the Classic Editor -> Switch over to the text editor -> Or click on the three-dot icon from the block toolbar if it is a Block Editor -> Select Edit as HTML-> Add the animated class and the class for your animation to the element tag -> Preview

These are two effective techniques to add animated text to your site, and they can help make your site more engaging and visually appealing. By using one of these techniques, you can add some movement and interest to your pages.

However, applying CSS can be a bit difficult if you don’t have any idea of coding. So, taking expert help is recommended for creating CSS animations in WordPress. Alternatively, ElementsKit fancy animated text is a smart widget that supports you in designing any stylish animation quickly. With the widget, you can transform your chosen texts into fancy animations.


  1. Webtoniq Avatar

    Great tutorial! Adding animation to text can really make a WordPress site stand out and capture visitors’ attention. Your step-by-step guide makes it easy for even beginners to implement these engaging effects. Thanks for sharing this valuable information!

Leave a Reply

Your email address will not be published. Required fields are marked *