I created a navbar that has a background colour change when the page is scrolled. The background colour change is set on the section element.
The animation all works fine until I turn the navbar (including the section element that has the interaction applied) into a component. Am I missing something obvious?
This is my first live project with Webflow and I’m very impressed so far - I have a 25 year career as a graphic designer - HTML/CSS developer under my belt and have longed for such a tool for a very long time.
Make sure the interaction is targeting a class within the component, not an element. My guess is that element targeting would not work if the element is in a component.
At the moment, it’s not possible to reuse page interactions. You’ll need to apply page triggers on each of your pages. However, you can set the animations to target the class of an element so you can reuse them on each page. To do so, set the page trigger(s) on the first page and create your animation(s). Make sure you target the class and not the selected element. Then, go to each page, add the page trigger(s) and select the animation(s) you’ve already created.