Monday, December 7, 2015

How to Easily Add CSS Animations in WordPress

Have you seen those beautiful CSS Animations on popular sites? Animated effects like sliding content, fade in feature boxes, bouncing images, etc. In this article, we will show you how to easily add CSS animations in WordPress without writing any code.

Pricing table animated using CSS

When and Why You Should Use CSS Animations?

CSS animations allow you to grab user’s attention on different parts of the page.

You can use them to animate product features or a call to action button.

Many websites use CSS animations as users scroll down a page. This adds a storytelling element to the page with items progressing as users scroll down.

CSS animations are also faster than flash or videos. They load quickly and are supported by most modern web browsers.

You can add CSS animations manually to your WordPress theme or child theme‘s stylesheet. However, most beginners don’t want to edit their theme files or spend time on learning CSS.

Having said that, let’s see how you can easily add CSS animations to your WordPress site.

Setting up CSS Animate! Plugin

We will be using a plugin for this tutorial. It allows you to create CSS animations using a WYSIWYG editor.

First thing you need to do is install and activate the Animate it! plugin. The plugin works out of the box and there are no settings for you to configure.

Simply create a new post, and you will notice a new button in your WordPress visual editor labeled ‘Animate it!’.

Animate it button in WordPress visual editor

Clicking on the button will bring up a popup where you can design your CSS animation. The plugin supports many CSS animations for you to choose from.

Animation editor

First you need to select an animation style. After that you need to choose the animation delay and duration time. Finally, you need to select when you want the animation to appear.

The plugin offers three choices. You can run the animation on click, hover, or scroll offset.

Select when to run the animation

Once you are satisfied with the settings, you can click on the Animate it button to see a preview of the animation.

Next, click on the insert button to add the animation into your WordPress post or page. You will notice that the plugin will add a shortcode with some dummy content inside it into post editor.

CSS animateit! shortcode in post editor

You need to delete the dummy content inside the shortcode, and replace it with your own content, images, or anything else you want to animate.

Replace dummy content inside shortcode with your own content

Now that you’re down, click to save or publish the post and then click on the preview button. You will see your content beautifully animated.

We hope this article helped you learn how to easily add CSS animations in WordPress. You may also want to see our comparison of the 5 best drag and drop WordPress page builders.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Easily Add CSS Animations in WordPress appeared first on WPBeginner.

No comments:

Post a Comment