How to Create Keyframe Animations (Keyframes)
In the current version, it is possible to animate only a custom code component using animation and keyframes.
Here’s a step-by-step guide to applying rotating animation to an element:
Create a code component. Click on the + button in the Project section of the Components tab.
Import dependencies from styled-components into the component:
Create a rotate variable with keyframes and styles:
Create a component using styled-components:
Add the animation property to the rotate variable:
Here’s the whole component code: