Ready
Animation
Animation helps to establish relationships between UI elements, focuses the user's attention on important content, and guides users through the actions they take.
Styles
.
anim-duration-sm
Quick, subtle animations for minor visual changes.
--
anim-duration-sm
Usage Example
Button hover color fades.
.
anim-duration-md
Substantial changes in larger components; noticeable but efficient.
--
anim-duration-md
Usage Example
Switching months in a calendar.
.
anim-duration-lg
Significant changes traversing large areas; attention-grabbing.
--
anim-duration-lg
Usage Example
Progress bar size transitions.
.
anim-ease-in
Starts slowly and accelerates. Ideal for smooth, gentle starts.
--
anim-ease-in
Usage Example
Objects exiting or fading out.
.
anim-ease-out
Starts quickly and decelerates. Creates a natural settling effect.
--
anim-ease-out
Usage Example
Objects entering the scene.
.
anim-ease-in-out
Slow start, fast middle, slow end. Balanced and natural motion.
--
anim-ease-in-out
Usage Example
Moving items across the screen.
Details
Duration
The duration of an animation often corresponds to the level of visual impact and the amount of interface change it introduces. The choice of duration depends on the user experience you want to create and the importance of the animation in guiding the user's attention and understanding.
Easing
Choosing the right easing function for your animations can significantly impact how they feel and look to users. Each easing function serves a specific purpose and can enhance the overall user experience by making animations feel more lifelike and engaging.
Transitions
Each of these animation transition types serves specific purposes in enhancing user experience and guiding user interactions. These are not set tokens and will need to be configured on a case-by-case basis by the engineers.
Color
Color transitions involve changing the color of an element to indicate different states, such as hover or active states. This type of transition is often used to provide visual feedback to users when they interact with elements like buttons or links. For instance, a button might change its background color when hovered over to indicate interactivity.
Fade
Fade transitions involve changing the opacity of an element to make it smoothly appear or disappear. When an element fades in, it gradually becomes more visible from an initially transparent state. When it fades out, it gradually becomes more transparent until it disappears from view. This type of transition is commonly used to make animations feel smoother and less abrupt.
Slide
Slide transitions involve moving an element in or out of view to bring attention to it or remove it from the user's sight. Elements can slide in from the side, top, bottom, or slide out of view in the opposite directions. This type of transition is often used to create a sense of movement and to guide the user's focus toward a specific element.
Fade-Slide
Fade-slide transitions combine both movement and opacity change to draw attention and provide a smooth transition for medium-sized elements. This approach is particularly effective when you want an element to catch the user's eye while still maintaining a sense of elegance. For example, the dynamic search will both slide into view and simultaneously fade in to avoid a sudden appearance.
Size Transform
Size transform transitions involve changing the size of an element, often to expand or collapse it, revealing or hiding content or additional interactions. This type of transition is useful for creating dynamic interfaces where certain parts of the content can be revealed or hidden without causing a jarring visual change.
Best Practices
1
.
Use Sparingly
Motion design can add dynamism to your content, but it's essential to use it sparingly. Overusing motion can overwhelm your audience and detract from the page UX. Prioritize the interactions that matter the most.
2
.
Providing Feedback
Motion can be a powerful tool for providing feedback to users. Whether it's a subtle animation to confirm a successful action or a clear visual indicator of an error, motion can enhance user experience by communicating status and outcomes effectively.
3
.
State Change
Motion is particularly effective at conveying transitions and state changes. Utilize motion to illustrate shifts in content, such as when switching between menu options or toggling between different modes. This provides users with a smooth and intuitive understanding of the interface's behavior.
4
.
Drawing Attention
Motion has a natural ability to capture attention. Employ it strategically to guide the viewer's focus to essential elements. Animations that emphasize key messages, CTA buttons, or important details can help direct user attention and improve engagement.
Tokens
Name
Value
--
anim-ease-in-out
ease-in-out
--
anim-ease-out
ease-out
--
anim-ease-in
ease-in
--
anim-duration-lg
500ms
--
anim-duration-md
300ms
--
anim-duration-sm
100ms
More
Additional Reading
The ultimate guide to proper use of animation in UX https://uxdesign.cc/the-ultimate-guide-to-proper-use-of-animation-in-ux-10bd98614fa9
Motion.ed https://motion.zajno.com/
Motion in UX Design https://uxplanet.org/motion-in-ux-design-90f6da5c32fe
How to use motion for better UX https://uxdesign.cc/how-to-use-motion-design-to-improve-the-ux-of-digital-products-42f40feab46f
The Role of Animation and Motion in UX https://www.nngroup.com/articles/animation-purpose-ux/