Setup & site building · Info
Can You Do Animations in WordPress? The Short Answer

Short answer
Yes. WordPress core has no animation panel in the block editor, but you can add animations with page builder motion effects, block animation plugins, custom CSS, Lottie files or JavaScript libraries such as GSAP. Keep effects subtle and respect reduced motion settings.
Key takeaways
- WordPress core has no built-in entrance or scroll animation controls.
- Page builders like Elementor include motion effects on most widgets.
- Block animation plugins add effects without code.
- Custom CSS keyframes work through the Additional CSS class field.
- Animate transform and opacity to keep pages smooth.
- Respect the reduced motion setting so animations stay accessible.
Can you do animations in WordPress?
Yes. You can add animations in WordPress with page builder motion effects, animation block plugins, custom CSS, Lottie files or JavaScript libraries such as GSAP.
WordPress core does not include a full animation panel in the block editor. There is no built-in setting that makes a block fade or slide in as visitors scroll.
That gap is filled by themes, builders and plugins. Some need no code at all, while others give developers fine control.
This explainer covers the main options, what each is good for, and how to keep animated pages fast and comfortable to use.
What kinds of animation can a WordPress site have?
WordPress sites commonly use entrance animations, hover effects, scroll effects, animated illustrations and animated text or counters.
- Entrance animations: elements fade, slide or zoom in when they scroll into view.
- Hover effects: buttons, cards and images change colour, lift or grow on hover.
- Scroll effects: parallax backgrounds and elements that move as you scroll.
- Animated illustrations: lightweight vector animations, often Lottie files.
- Text and number effects: typing headlines, rotating words and counting numbers.
- Page transitions and loaders: fades between pages or a loading screen.
Most sites only need one or two of these. A few subtle effects look polished, while too many feel distracting.
Does the WordPress block editor support animations?
The block editor has no native entrance or scroll animation controls, but plugins add them, and you can apply CSS animations through custom classes.
Every block has an Additional CSS class(es) field under Advanced in its settings sidebar. You can add a class there, then define the animation in your theme's custom CSS.
Plugins such as Blocks Animation add an animation panel to every block, so you can choose effects like fade or slide without writing code.
Developers building block themes can also use the Interactivity API to add interactive behaviour to blocks, though it is aimed at interactivity rather than decorative motion.
How do page builders handle animations?
Page builders such as Elementor include animation settings on most widgets, with entrance effects in the free version and more motion features in paid plans.
In Elementor, open a widget's Advanced tab and look for Motion Effects. You can choose an entrance animation, a delay and a duration. Our guide to Elementor animation settings explains each control.
Elementor Pro adds scrolling and mouse effects, such as parallax and tilt, plus a Lottie widget. Other builders, including Divi and Beaver Builder, have similar animation controls.
If you are choosing between building with blocks or a builder, our comparison of Gutenberg vs Elementor covers animation and other differences.
Which animation method should you choose?
Pick the simplest method that does the job: builder settings or a block plugin for most sites, CSS for small custom effects, and GSAP for complex motion.
| Method | Code needed | Best for | Watch out for |
|---|---|---|---|
| Page builder motion effects | No | Sites already built with a builder | Extra scripts on every page |
| Animation block plugin | No | Block editor sites | Plugin quality and updates |
| Custom CSS animations | Some CSS | Hover effects and simple fades | Browser testing |
| Lottie animations | No to some | Illustrations and icons | File size of complex animations |
| GSAP or other JS libraries | Yes | Scroll-driven, timeline effects | Developer time and testing |
| Animated GIF or video | No | Short demos | Large files and no interactivity |
How do you add a simple CSS animation?
Write a keyframe animation in your custom CSS, give it a class name, and add that class to a block or widget.
Add this in Appearance > Customize > Additional CSS on a classic theme, or in the Site Editor's styles on a block theme:
.fade-up {
animation: fade-up 0.6s ease-out both;
}
@keyframes fade-up {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
.fade-up { animation: none; }
}
Then type fade-up into a block's Additional CSS class(es) field. MDN's guide to using CSS animations explains keyframes, timing and other properties.
This plays when the page loads. To trigger it on scroll, you need a little JavaScript or a plugin that adds a class when the element enters the screen.
What are Lottie animations?
Lottie animations are small vector animation files, usually in JSON format, that play smoothly at any size and are often lighter than GIFs or videos.
Designers export them from animation tools, and many free ones are available online. You can show them in WordPress with a Lottie block or plugin, or with Elementor Pro's Lottie widget.
Lottie works well for animated icons, hero illustrations and empty-state graphics. Very complex animations can still be heavy, so check the file size before adding one.
Can developers use GSAP in WordPress?
Yes. Developers can enqueue GSAP in a theme or plugin and write scroll-triggered or timeline animations, which suits detailed, custom motion design.
GSAP is a popular JavaScript animation library with plugins for scroll-based effects. Load it with wp_enqueue_script() rather than pasting script tags, so WordPress manages dependencies and order.
Keep custom animation scripts limited to the pages that need them. Loading a large library site-wide for one hero effect wastes bandwidth on every other page.
Do animations slow down a WordPress site?
Animations can slow a site if they rely on heavy scripts or animate costly properties, but well-built effects using transform and opacity have little impact.
Browsers can animate transform and opacity cheaply. Animating width, height, top or margin forces the browser to recalculate layout and can feel janky. Google's animations guide on web.dev explains this in more depth.
Entrance animations can also hurt perceived speed. If the main heading is hidden until a script runs, visitors see a blank area for a moment. Avoid animating the largest element at the top of the page.
Builders can add CSS and JavaScript for animations to every page. Our guide on removing unused CSS helps trim what you do not need.
If your animations come from a page builder, our guide on speeding up Elementor covers builder-specific settings that reduce the extra load.
How do you keep animations accessible?
Respect the reduced motion setting, avoid flashing effects, and never hide important content behind an animation that might not run.
Some people get dizzy or nauseous from motion. Operating systems let them turn on a reduce motion setting, and CSS can detect it with the prefers-reduced-motion media query.
The W3C's guidance on animation from interactions recommends letting users turn off non-essential motion. Avoid anything that flashes more than three times a second.
Also make sure content is visible if JavaScript fails. Content that only appears after an animation script runs may be invisible to some users and crawlers.
Why might animations not work on your site?
Animations usually fail because of caching or script optimisation, a plugin conflict, or a reduced motion setting on the device you are testing.
Optimisation plugins that delay or combine JavaScript often stop entrance animations from firing. Exclude the animation scripts from those features and clear all caches.
If you use Elementor, our guide on Elementor animations not working walks through the common fixes step by step.
Should you add animations to your site?
Add animations when they guide attention or explain something, and skip them when they only decorate, because restraint usually looks more professional.
A good test is to ask what the animation helps the visitor do.
A subtle hover on buttons shows they are clickable. A short reveal can draw the eye to a key offer. Ten elements flying in from different directions only slows people down.
Start small, test on a phone, and check your page speed before and after adding effects.
Frequently asked questions
Does WordPress have built-in animations?
WordPress core does not offer entrance or scroll animation settings in the block editor. Some themes include animation options, and plugins or page builders add them. You can also write CSS animations and apply them to blocks with custom class names.
Can I add animations without coding?
Yes. Page builders such as Elementor have motion effect settings on each widget, and block plugins add an animation panel to the block editor. Both let you pick fade, slide or zoom effects with delays and durations from simple menus.
Are animations bad for SEO?
Animations are not bad for SEO by themselves. Problems arise when heavy scripts slow the page or when key content stays hidden until an animation runs. Keep effects light and never hide your main heading or content behind a script.
What is the best animation plugin for WordPress?
It depends on how you build. Elementor users can rely on its built-in motion effects, while block editor users can choose a block animation plugin. Developers who need complex scroll effects often prefer GSAP loaded through a theme or custom plugin.
How do I turn off animations for users who prefer less motion?
Wrap your animation CSS in a prefers-reduced-motion media query that removes or shortens effects when the visitor's device asks for reduced motion. Many animation plugins and libraries also include an option that respects this setting.
Sources
- Using CSS animations MDN Web Docs
- prefers-reduced-motion MDN Web Docs
- Understanding Animation from Interactions W3C WAI
- Animations guide web.dev
- Interactivity API Reference WordPress Developer Resources
- GSAP GreenSock
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


