Animated Toggle Switch
InteractionsLive PreviewA smooth toggle switch with satisfying micro-animation.
Customize Preview
Select options to update the live preview, or edit the prompt directly below.
Your Prompt
abcclick to editCreate an animated toggle switch with medium (48px wide) size and iOS-style rounded styling. The knob transitions with a bouncy spring animation. Include sun/moon icons for light/dark theme to indicate state. Use CSS transitions for the slide and background color change. Make it accessible with proper ARIA attributes.