Hi everyone
I’m building a custom cookie banner in Webflow using native interactions. The setup is mostly working, but I’m stuck with a strange animation problem:
What I want to achieve:
- On first page load, the cookie banner appears at the bottom
- When the user clicks “Accept” or “Decline”:
- The banner should slide out to the left
- A small cookie icon should slide in from the left (and stay sticky bottom-left)
- When the user clicks the cookie icon:
- The icon should slide back out
- The banner should slide back in from the left
What works:
- Initial state is set in the “BannerToIcon” interaction (Move X = 0% for banner, Move X = -200% for icon)
- The transition from banner → icon works fine
- The cookie icon appears, and clicking on it runs the second interaction (“IconToBanner”)
What doesn’t work:
- The banner won’t move back into view in the “IconToBanner” animation
- The icon slides out correctly
- But the banner just stays hidden (display: none or stuck offscreen)
- Even though I’m animating the same properties (Move X) on the banner
What I’ve tried:
- Double-checked that only “BannerToIcon” defines the initial state
- Verified z-index and positioning (
position: fixed
,z-index: different for both
) - Made sure I’m affecting the selected element and not a class
Is it possible that Webflow animations are conflicting because two interactions touch the same element? Or am I missing something obvious about re-showing a moved and hidden element?
Would love any ideas, or if someone has solved something similar!
Thanks!
My Preview Link: