This course is outdated and does not reflect our current course standards or industry best practices.
Check out a free preview of the full UI Prototyping with Framer.js course:
The "Layer Events" Lesson is part of the full, UI Prototyping with Framer.js course featured in this preview video. Here's what you'd learn in this lesson:
Events are typically caused by user interaction but can also be triggered when an animation starts or ends. Layers listen for events using the Layer.on function. Within the event, you can reference the layer using the this or @ keywords.