Using Events for nested interactions in Framer

Sometimes we end up with an interaction inside of a component that we need to trigger from outside of that component.

Sometimes we end up with an interaction inside of a component that we need to trigger from outside of that component.

In this Framer tutorial, you will learn Using Events for nested interactions in Framer. We explain a practical workflow, highlight the key settings that affect the result, and show how to apply the technique on real pages for cleaner UX and better site performance.

Using Events for nested interactions in Framer FAQ

Using Events for nested interactions in Framer FAQ

  • How can I trigger a parent component’s transition from an interaction inside a child component in Framer?

    You can use events in Framer to trigger transitions in a parent component from interactions inside a child component. By creating events for specific interactions within the child (such as clicking an icon), these events become available in the parent component’s properties panel. You can then assign transitions to different variants in the parent component based on which event is triggered.

  • What is the process for creating and connecting events to interactions in Framer components?

    To create and connect events in Framer, double-click into your child component and select the layer you want to trigger the event from. Add a new interaction and choose to create a new event, giving it a unique name. You can also add events from the variables modal and then connect them to layers by selecting ’choose event.’ Once events are set up, they appear in the parent component, where you can define what happens when each event is triggered.

  • Can I use events to close overlays from within a nested component, and how does that work?

    Yes, you can use events to close overlays from within a nested component. For example, if you have a close button inside a form component within an overlay, you can create a ’close’ event on the button. In the overlay’s settings, you can then set the ’close’ event to trigger the overlay to close. This allows interactions inside the nested component to control the overlay’s behavior.

Related videos