[ad_1]
Animations can enhance the usability of an online or cellular interface by guiding navigation, indicating progress in duties, and offering suggestions in response to consumer actions. Animating UI elements particularly is a vital—if delicate—approach to enhance the consumer expertise. As an illustration, when clicking a coronary heart icon makes it pulse and switch purple, or hovering over a button causes it to alter shade, the consumer receives immediate suggestions that cues them to transition to their subsequent activity.
In my six years of UI/UX design, I’ve created a spread of animations, from animated microinteractions to advanced scrolling results. I’ve discovered that animating in Figma is useful as a result of it permits the grouping of parts into elements that may be reused and modified throughout a number of initiatives. I additionally depend on Figma’s “sensible animate” characteristic, a simple software for automating transitions.
On this step-by-step tutorial, I present fellow designers tips on how to create three animated UI elements in Figma: a Favourite icon, a call-to-action (CTA) button, and a product card.
Animating a “Favourite” Icon
A Favourite icon permits customers to label an merchandise as vital or one thing they like, typically as a approach to reserve it for revisiting later. For instance, Gmail has a star icon customers can click on to mark their vital emails. This tutorial demonstrates tips on how to create an identical star in order that customers can click on or faucet to mark gadgets they like. The ensuing animation will likely be fairly easy—a delicate fade from white to blue—however it’s minor particulars like these that make a product extra participating.
Begin by clicking Design file within the upper-right nook of the Figma residence web page to open a brand new venture.

Step 1: Create the Default Star
On the toolbar on the prime of the display screen (we’ll name this the prime toolbar), click on the form software—a sq. icon—on the left facet to entry the drop-down menu. Choose the star from the menu after which click on to attract the form in your canvas. You need to now have a grey star in your canvas.
When you create the form, a panel the place you may customise the aspect’s angle, dimension, shade, and impact opens on the proper sidebar. Modify the settings: Click on the minus signal within the fill area to take away the grey fill, and select the stroke shade you need for the form’s define (I set mine to blue for this tutorial). It’s also possible to regulate the road’s thickness by altering the quantity subsequent to the hamburger icon (I set mine to 2).
You’ve created the star’s default look (or the way it appears earlier than a consumer clicks it).

Step 2: Flip the Star Right into a Element and Add a Variant
Click on on the star, after which click on Create part (the diamond icon) on the prime toolbar to show the star right into a part.
Subsequent, add a variant, or a replica of the part which you could modify. On the prime toolbar, click on the Add variant icon (a plus register a diamond).
You now have a part set with two variants of the star. Double-click the second variant (the underside star) to open the proper sidebar and alter the fill to match the stroke shade utilizing the matching software or by copying the colour code. The second variant is what the star will appear to be after the consumer clicks it.

Subsequent, let’s title the 2 variants. Choose the primary star. On the proper sidebar, verify that the Property 1 area reads default. Then click on on the second star and alter the Property 1 area to crammed.
Step 3: Create the Transition Utilizing Figma’s Good Animate Function
On the prime of the proper sidebar, change from design mode to prototype mode. Choose the default variant, after which hover your cursor over it till you see a small blue circle containing a plus signal on the sting of the variant.
Click on on the blue circle and drag it to the crammed variant to create a connection. An arrow will seem between the 2 stars, and a panel with interplay settings will pop up.
Set the next properties within the pop-up settings:
- On click on: The primary setting within the pop-up is the set off for the animation. We would like the star to alter when the consumer clicks it, so be sure that On click on is chosen from the drop-down menu.
- Change to: Subsequent is the motion that’s triggered. On this case, the default star will Change to the crammed star.
- Stuffed: Third is the vacation spot, or what the star will change to. The second variant ought to already be set because the vacation spot, however affirm that it reads crammed subsequent to Property 1.
- Good animate: The fourth setting is the animation. The choices are On the spot, Dissolved, and Good animate. Choose Good animate to automate a seamless transition.
- Ease out: Select the kind of transition because the star adjustments from default to crammed. Choose Ease out for the transition to begin shortly and finish slowly.
- Velocity: This remaining setting is the velocity of the transition in milliseconds. Set the velocity to 200ms (0.2 seconds). This might sound quick, however the tempo aligns with consumer expectations. Nobody desires to sit down and watch prolonged or elaborate animations after every UI interplay.

The transition from default to crammed is full—however what if the consumer desires to unfavorite an merchandise or unmark an e-mail and revert the star to the default model?
To allow this motion, create one other transition, however this time from crammed to default. Choose and hover over the crammed variant after which click on and drag the blue circle with the plus signal to the default variant. Within the pop-up settings, maintain the identical properties because the final animation, besides change Property 1 to default.

Step 4: Preview the Animation
To preview the animation, you first have to create a body. Begin by clicking the area software on the left facet of the prime toolbar and selecting Body from the drop-down menu. Within the canvas, click on and drag to open the body, then copy and paste the default variant into the body.
On the correct facet of the prime toolbar, click on the prototype view software to open a drop-down menu with the choices Current and Preview. To view the animation in a brand new window, choose Current; to view it in your present window select Preview. As soon as the preview opens, click on on the star to check that the animation adjustments from default to crammed and vice versa.
Here’s a preview of the animated icon:
A Name-to-Motion Button for Guiding Customers
Subsequent, we’ll construct on the method we simply realized to animate a CTA button. Right here once more, the animation will likely be delicate, however we’ll add one other variant to the equation with the intention to create an oblong button with three states: default, hover, and pressed.
Step 1: Create the Default Button
Working in the identical design file that accommodates your Favourite icon, change again to design mode. Click on the form software within the prime toolbar and choose the rectangle. Click on and drag within the canvas to attract a rectangle. Within the proper sidebar, change the fill shade to your most popular shade.
Click on the textual content software on the prime toolbar, then add a textual content field contained in the rectangle. Sort “Learn extra” or your required textual content into the field. On the proper sidebar, regulate the textual content’s dimension, font, and shade as desired. It’s also possible to customise your button—as an example, to offer the button rounded edges, regulate the nook radius setting.
Step 2: Flip the Button Right into a Element and Add Two Variants
Use the choice software to pick out the rectangle and textual content field. Click on Create part within the prime toolbar to transform it right into a part. Subsequent, click on Add variant and a replica button will seem beneath the unique button.
Then, with the second variant chosen, click on on the purple plus signal that seems. A 3rd variant will seem beneath the second. You now have a part set with three variants.
Change the fill shade of the second and third variants. I like to recommend making the colours progressively darker. I modified my second variant to a darker blue and my third variant to black.
Earlier than we proceed, let’s title the three variants. Click on on the primary variant, and on the proper sidebar affirm that the sphere subsequent to Property 1 reads default. Choose the second variant and alter Property 1 to hovered. Lastly, choose the third variant and alter Property 1 to pressed.

Step 3: Create the Transition by Utilizing the Good Animate Function
Now we create the transition from default to hovered. On the proper sidebar, change to prototype mode. Choose the default variant and hover your cursor over it till a blue circle with a plus signal seems. Drag the blue circle to the hovered variant to create a connection. An arrow will seem between the 2 variants, and a panel with interplay settings will pop up.
Set the next properties within the pop-up settings:
- Whereas hovering: We would like the button to alter shade when the consumer hovers over it, so change the set off to Whereas hovering within the first drop-down menu.
- Change to: The motion must be set to Change to.
- Hovered: The second variant ought to already be set because the vacation spot, however affirm that it reads hovered subsequent to Property 1.
- Good animate: Choose Good animate from the animation choices to automate a seamless transition.
- Ease out: Set the transition to Ease out.
- Velocity: Set the velocity of the transition to 200ms.
Repeat these steps for the third variant. Discover the plus signal on the hovered variant and drag it to the pressed variant. Set the set off to Whereas urgent and verify that Property 1 reads pressed. Maintain the properties Good animate, Ease out, and 200ms.

Step 4: Preview the Animation
To preview the animation, create a body within the canvas. Copy the default variant into the body. Within the higher right-hand nook of the prime toolbar, click on on the prototype view software and select Preview to view the animation in the identical window or Current to view it in a brand new window. This can open a preview so to verify that the button adjustments from default to hovered to pressed.
Right here is the preview of the button animation:
A Product Card That Grabs Consideration
For the ultimate UI animation tutorial, we create and animate a product card. Playing cards are fashionable UI elements that show a snapshot of data and hyperlink to a web page. The product card we create on this tutorial incorporates the Favourite and Learn Extra buttons to reveal how elements could be reused throughout initiatives. We additionally add a easy animation to the cardboard that helps entice clicks.

Step 1: Create the Default Card
Working in the identical design file that accommodates the 2 buttons, change again to design mode. Click on the form software positioned on the left facet of the prime toolbar and choose the rectangle from the drop-down menu, then draw a rectangle in your canvas.
We use a picture for the background of this card. Click on the form software once more, choose Place picture/video from the menu, and add your required picture. Click on on the rectangle you drew, and the picture will seem inside the form.
Subsequent, add a textual content field and enter your required copy (for this instance, I wrote “UI Animation Course”). Modify the font, dimension, and placement of the textual content, copy the default variants of the Favourite and Learn Extra buttons we created within the earlier steps, and paste them onto the rectangle. In my card, I positioned the textual content field on the prime left, the Favourite icon on the prime proper, and the Learn Extra button on the backside proper.
As a mode selection, I desire a line to seem on the bottom-left nook when the consumer hovers over the cardboard. To create this, utilizing the form software, choose line and draw a brief horizontal line on the rectangle subsequent to the Learn Extra button. Customise the road utilizing the proper sidebar; I adjusted mine to a 5px width and took the layer opacity to 0% so the road wasn’t seen within the default card.
Step 2: Flip the Card Right into a Element and Add a Variant
Choose all parts and convert them right into a part utilizing the Create part icon on the prime toolbar. Subsequent, click on Add variant. The second variant will seem beneath the primary. You now have a part set with two variants.
Double-click the second variant, after which click on Crop on the prime toolbar. Now you can transfer the picture contained in the rectangle so {that a} completely different portion of it seems within the card. It’s also possible to make the picture bigger or smaller. Both of these choices will create the phantasm of motion within the animation.
Click on on the horizontal line. On the proper sidebar, change its opacity to 100%, after which lengthen the road.
Identify the second variant by deciding on it and typing in hovered subsequent to Property 1 on the correct sidebar.

Step 3: Create the Transition Utilizing the Good Animate Function
Within the proper sidebar, change to prototype mode. Choose the default variant, and hover the cursor over the cardboard till the blue circle with a plus signal seems. Drag the blue circle to the hovered variant to create a connection. An arrow will seem between the 2 variants, and a panel with interplay settings will pop up.
Set the next properties within the pop-up settings:
- Whereas hovering: We would like the cardboard to alter when the consumer hovers over it, so change the set off to Whereas hovering from the primary drop-down menu.
- Change to: The motion must be set to Change to.
- Hovered: The second variant ought to already be set because the vacation spot, however affirm that it reads hovered subsequent to Property 1.
- Good animate: Choose Good animate from the animation choices to automate a seamless transition.
- Ease out: Set the transition to Ease out.
- Velocity: Since this can be a extra sophisticated animation with a number of elements at play, set it to a slower velocity of 600 ms. This makes the transition smoother and provides the consumer extra time to course of the motion.
The Favourite icon and Learn Extra button will retain the animations you already created for them, so that you don’t want to regulate them additional at this step.
Step 4: Preview the Animation
To preview the animation, create a body within the canvas and replica the default variant into the body. Within the higher right-hand nook of the prime toolbar, click on on the prototype view software and choose Preview to view the animation in the identical window or Current to view it in a brand new window. This can open a preview so you may verify that the cardboard works as meant. Take a look at the animation by hovering over the cardboard to look at the road and background change. Click on on the button elements to see the preset animations.
Here’s a preview of the cardboard animation:
Elevate the Consumer Expertise With Figma Animation
As soon as a designer masters the animation of foundational UI elements, they will simply transfer on to extra advanced animations, corresponding to scroll-triggered animations and animated information visualizations. Figma’s animation performance works finest for easy graphics and UI elements; for extra advanced animations, corresponding to movement graphics in a video or for 3D animations, I like to recommend utilizing Adobe’s After Results or Apple’s Movement.
The UI animations coated on this tutorial are an important place to begin bettering product usability. Although I’m skilled at creating extra intensive animations, I typically use these easy results in my work as a result of they’re efficient and environment friendly. Generally, elegant simplicity makes all of the distinction.
[ad_2]









