MotionLift

How to add animation to a WordPress site without rebuilding it

By Pulse Labs · Published · Updated · 3 min read

You can animate a WordPress site three ways: use the motion effects in a page builder such as Elementor, add your own CSS and JavaScript, or load one script that adds motion to the pages you already have. The third needs no change to your theme or content, only a single script tag loaded on the front end.

This guide covers where that tag goes, the official WordPress way to load a script, when a page builder's own effects are the better choice, and what to check afterwards. It applies to a self-hosted WordPress site where you can edit theme code or install a plugin. If you are on a hosted plan, check that yours allows custom code.

Which route fits

RouteGood whenNot when
Elementor motion effectsYou already build with Elementor and want specific elements to move. Elementor's docs list scrolling effects (vertical and horizontal scroll, transparency, blur, rotate, scale) and mouse effects, and say they require Elementor ProYour site is not built with Elementor, or you want one consistent treatment across every page
Your own CSS and JavaScriptYou have one or two effects in mind. See scroll animationYou do not want to maintain code
A script that adds motion (MotionLift)The site exists, whatever builder made it, and you want the pages to feel alive without editing each blockYou want to design each movement yourself

Loading the script the WordPress way

MotionLift's Studio gives you one line to install, a plain script tag with async. For WordPress the Studio suggests a header and footer code plugin, or your theme's footer.php before </body>. If you prefer to do it in code, the WordPress reference describes wp_enqueue_script(), which should be called from the wp_enqueue_scripts hook for the front end, and accepts a strategy of async or defer.

Small plugin or child theme · php
<?php
add_action( 'wp_enqueue_scripts', function () {
  wp_enqueue_script(
    'motionlift',
    'PASTE-THE-ADDRESS-FROM-THE-STUDIO',
    array(),
    null,
    array( 'strategy' => 'async', 'in_footer' => true )
  );
} );

Put it in a small plugin or a child theme. Code added to a theme you do not maintain can be replaced when the theme updates.

What to check afterwards

  1. View the page source and confirm the tag appears once, not twice, if a caching plugin combines scripts.
  2. Clear any page cache or CDN cache, then load the page in a private window.
  3. Turn on your system's reduced motion setting and confirm nothing moves. See reduced motion.
  4. Look at pages with sliders, sticky headers or other plugins that already animate. MotionLift skips anything that already animates or holds a sticky or fixed element, but you should still look.
  5. Open the page on a phone.

Preview before you publish

In MotionLift's Studio you load your own page and flip between the original and the version with motion, and nothing on your live site changes. If a WordPress page comes up broken in the preview, the cause is usually fonts, signed-in content or widgets that do not load inside the sandbox; the home page FAQ explains the cases. Install one line once, then Publish updates live pages within about three minutes. To remove it, delete the tag. Plans are $19 a month, or one payment for Lifetime Pro ($329 for the first 100 Lifetime buyers, then $379; up to 20 of your own sites, 300 previews a day, one launch film a year), with a 14-day money-back guarantee and no free plan or trial.