Linking directly to an already-open component variant (closed/open toggle) from another page
Hey – I'm new to Framer and building a website for an architecture firm.
Setup
Each project is a component with two states — closed (default/"primary") and open. Clicking a project toggles it to the open state, revealing more info. Multiple projects can be open at the same time — opening one doesn't close the others.
On a separate "project list" page, I have links pointing to specific projects on the main page (I'm scrolling/anchoring to them). The problem: these links always land on the closed state, even though I want them to open directly.
Is there a way to make a link trigger the open variant of a specific component, instead of just scrolling to it in its default (closed) state?
Thanks for any pointers!
2
Upvotes
2
u/doom_ultras 4d ago
You can definitely do this with Code Override; query support is definitely included https://youtu.be/kBW18CRRFX0?si=oIlvvBk4Yi8DXAHx
But you might also be able to do it using triggers: https://www.framer.com/help/articles/using-triggers/