Skip to content

[feature] Add smooth check/toggle animation for Checkbox and Toggle component #1738

@pixeltannu

Description

@pixeltannu

Description

Currently, the Checkbox and Toggle component changes state instantly without any animation, which makes the UI feel static and less interactive. Adding a smooth check/toggle animation would improve the overall user experience and make the interface feel more modern and polished.

Proposed Solution

  • Add a smooth checkmark draw animation when Checkbox is checked/unchecked
  • Add a smooth slide animation for Toggle switch (left → right, right → left)
  • Add a subtle background-color transition when Toggle is switched on/off
  • Keep animation duration short (150–200ms) for a responsive feel
  • Use CSS transitions and keyframes for better performance
  • Ensure animations work consistently across all Checkbox and Toggle variants

Why this is useful

  • Gives clear visual feedback to the user when state changes
  • Makes Checkbox and Toggle interactions feel smooth and natural
  • Improves overall UI polish without affecting core functionality
  • Enhances user experience across forms and settings throughout the application

Additional Context

I would like to work on this issue as part of GSSoC 2026. Please assign it to me — I'll raise a PR soon with the implementation.

Metadata

Metadata

Assignees

Labels

assignedIssue claimed by a contributor.gssoc-requestGSSoC contributor introduction issue.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions