How to add animation to a Shopify store
By Pulse Labs · Published · Updated · 3 min read
To add animation to a Shopify store without changing your theme's design, load one script from the theme's code editor. Shopify's help centre says to open Online Store, then the horizontal menu, then Edit code, and to duplicate the theme first so you can discard changes. For the script itself, paste it into theme.liquid just before </body>.
Before you do that, check whether your theme already has the effect you want. Themes differ, and a setting in the theme editor is easier to maintain than code. Shopify's customizing themes page says that when your theme lacks settings for a change and you are comfortable with HTML, CSS and Liquid, you can edit the theme code.
What Shopify's help centre says
These points are from the Shopify help page on editing theme code, checked 22 November 2026.
- Open the editor from Online Store, then Edit code in the horizontal menu.
- Theme files are mainly Liquid, with HTML, CSS, JSON and JavaScript.
- If you use a trial of a paid theme, you must buy it before you can change its code.
- Duplicate the theme first, so you can discard changes and start again.
- Each file has a Timeline that lets you restore an earlier version. It restores one whole file at a time, cannot recover deleted files, and keeps limited history.
Adding the script
- In MotionLift's Studio, preview your store's own page and choose a style. Copy the install line.
- In Shopify, duplicate your live theme, then open Edit code on the copy.
- Open
layout/theme.liquidand paste the line just before</body>. Save. - Preview the copy, check it, then publish the theme.
The Studio's own instructions for Shopify say the same: Online Store, Themes, Edit code, theme.liquid, before </body>. A Custom Liquid section is not a safe place for it. Shopify's help page on extending themes mentions Custom Liquid for app code, but community threads report that script blocks there can be rejected, and we have not tested it.
Your theme or the script
| Choose | When |
|---|---|
| Theme settings | Your theme documents the effect you want. Check its documentation first |
| A script that adds motion (MotionLift) | You want backdrops, graphs from your own figures, rolling prices and cards that deal out across product and collection pages, with no change to layout, copy, colours or fonts |
| Your own code | You need one specific behaviour, and you or a developer maintain it |
What to check on a store
- Product pages and collection pages, on a phone. Product images with text over them are left alone by MotionLift, so that is expected.
- Cart and checkout still work. Shopify controls checkout; check that your edit did not touch it.
- Reduced motion on: nothing should move. See the accessibility guide.
- Speed: the script is one file of about 28 KB compressed, with no libraries, loaded async. Measure with your own tools, and read animation and page speed.
MotionLift costs $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. Removing it means deleting the line you added.