Hi, I’m working on a Webflow project and I’m wondering if it’s possible to trigger an animation on one page by clicking a button on a different page. Specifically, I want to click a button on my homepage that will cause a hidden text element to appear on a separate page. Could you provide guidance on how to achieve this within Webflow’s native functionality or suggest any custom code solutions if necessary?
Webflow’s native interactions don’t support triggering animations across different pages, but you can achieve this with a combination of URL parameters and custom JavaScript. First, modify your button’s link to include a query parameter (e.g., yourpage?showText=true). Then, on the target page, add a custom <script> in the Page Settings or inside an Embed block that reads the URL parameter and triggers the animation. Use Webflow’s interactions with display: none and opacity: 0 for the hidden text, then use JavaScript (window.location.search.includes("showText=true")) to add a class that triggers the animation when the page loads.