An element freezes when a CSS animation and a GSAP tween both animate its transform. Each one writes the whole property, so they overwrite each other and the element stops where neither expects. The fix is to put each animation on its own element: wrap the element, let GSAP move the wrapper and let CSS move the inner one.
I found this on my own name. Of all the things to break.
What was I trying to do?
The About page on zolodigital.com opens with my name in two very large lines. It is a rebuild of the original WordPress hero, and it has two motions:
- On load, line one drops in from above and line two rises from below. That's a CSS keyframe animation.
- On scroll, line one drifts right and line two drifts left as the hero leaves the screen. That's GSAP with ScrollTrigger, scrubbed to the scroll.
The first version put both on the same <span>. The entrance played, then the scroll drift refused to move the name. It just sat there.
Why do the two animations fight?
Both animations write the same CSS property. The keyframes set transform: translateY(...). GSAP sets transform: translate(...) with its own x value as an inline style. transform is one property, not a list you add to, so the two can't be combined. While a CSS animation applies, its value beats inline styles, including GSAP's (and with fill-mode: forwards or both, it applies for good).
So you get one of two things: the entrance wins and the scroll effect does nothing, or GSAP wins and the entrance jumps. On my page, the name froze.
How do you fix it?
Give each animation its own element. The outer span belongs to GSAP, the inner span belongs to CSS:
<h1> <span ref={wrap1} className="block will-change-transform"> <span className="hero-name-down block">{lines[0]}</span> </span> <span ref={wrap2} className="block will-change-transform"> <span className="hero-name-up block">{lines[1]}</span> </span> </h1>
The CSS entrance stays on the inner span:
@keyframes hero-name-down { from { opacity: 0; transform: translateY(-55%); } to { opacity: 1; transform: translateY(0); } } .hero-name-down { animation: hero-name-down 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
And GSAP only ever touches the wrappers:
const st = { trigger: section, start: "top top", end: "+=780", scrub: 0.4 }; gsap.to(wrap1.current, { x: 150, ease: "none", scrollTrigger: st }); gsap.to(wrap2.current, { x: -150, ease: "none", scrollTrigger: st });
Transforms on nested elements stack, so the name can rise in and drift sideways at the same time. At rest both are zero, so the layout doesn't move a pixel. It's still one <h1> for search engines and screen readers; the spans are only there for the motion.
Does this happen on Shopify stores?
Yes, and it's harder to spot because two different people wrote the two animations. A theme fades product cards in as you scroll. An app adds a slide-in or a hover zoom to the same card. Both write transform or opacity, and one of them quietly loses. It shows up as "the animation only works sometimes" or "the app's effect doesn't do anything".
How to check:
- Right-click the element and choose Inspect.
- In the Styles panel, look for more than one rule or inline style setting
transform. - Look at the Animations panel in Chrome DevTools to see what's running on it.
If two things are moving one element, wrap it and give one of them the wrapper. Or switch one off: two entrance effects on the same card were never going to look better than one.
Anything else to watch for?
If the scroll effect runs through a smooth-scroll library such as Lenis, test it with a real wheel or trackpad. A scripted window.scrollTo() doesn't fire the scroll events those libraries listen to, so a test can report a broken effect that works fine for people.
If your store has an effect that sticks, jumps or does nothing, that's the kind of thing I look at in a Shopify UX and UI review. One element, one owner per property, and the name moves again.






