ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

Motion and Animation

Open ASM995 opened this issue 2 years ago โ€ข 1 comments

Summary

Enhance motion and animation across all components to provide better experience through subtle visual cues. Componentize as style so they can be used on custom components

๐Ÿ’ฐ User value

Describe why this is important and how it will help users (either developers, designers or the end-users). Think about how it makes people's lives easier, more accessible or quicker to build stuff.

๐Ÿ“š User Stories

If relevant, describe the high-level functionality as user stories.

As an ICDS user: I need So that

๐Ÿ“ Acceptance Criteria

If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

Given When Then

โœ Designs

If there's a Figma design file (or other mock-up), include it here.

##ย ๐Ÿงพ Guidance If there's written guidance or documentation, include it here.

ASM995 avatar Jun 07 '23 10:06 ASM995

During recent work on v3 it was noticed that motion between states across all components was inconsistent. We need a consistent approach to moving between: Default => Hover. => Pressed => Visited/Clicked. Proposed is that 100ms, Smart animation, Ease in and out is used by default, with the transition to visited/clicked set to 300ms to implement a more naturalistic feel when interacting with components.

mi6-577 avatar Mar 21 '25 08:03 mi6-577

Unlike colour and typography, there is no ability in Figma to apply variable tokens to motion/animation and as such, there's no way to Componentize the motion/animation style. At best we could categorise interactions;

  • major = the motion takes place over a large area such as the expanding of a drawer or accordion
  • minor = the motion is at a detailed level, such as hovering over or clicking a button or checkbox

We should then agree on recommended settings for both

mi6-577 avatar Sep 12 '25 07:09 mi6-577