Interactivity in Hana
Bring your designs to life with motion design and interactive states. Use event-based triggersβlike mouse clicks or keyboard inputβto experience how your design behaves in action.
How State-Based Animation Works
State-Based Animation in Hana allows you to create dynamic, interactive designs by using States, Events, and Actions. You can define different states for an object and switch between them to create animations, such as changing colors, positions, or sizes based on user interaction.
Events & Interactivity
Events in Hana trigger changes in an objectβs state when interacting with the canva. By attaching events to elements, you can initiate actions like transitions or animations in response to user inputs.
Hana Events
Hana supports various events that you can attach to objects. Hereβs an overview:
Start Event
Mouse Events (Up, Down, Press, Hover)
Key Events (Up, Down, Press)
Look At Event
Follow Event
You can also control the passthrough behavior of events in the Events Panel by clicking on the icon next to the Events label:
Enabled Passthrough: Allows events to trigger on both overlapping objects (e.g., clicking a stacked button will activate events on both).
Disabled Passthrough: Only the topmost object will respond to the event.
This feature is useful for creating layered or nested interactions in your designs.
Animatable Properties in Hana
These properties can be animated using States and Events in Hana:
Position, Rotation, Size
Vector and vector network point positions.
Note: The transition can only handle the same number of points on each state.
Fill & Stroke (color, opacity)
Custom Shape Edits (modifying shapes like booleans)
Shape Transformations (scaling, resizing, etc.)