Swap

Clicky clicky
Class Reference

Basic

Fundamental swap patterns using checkbox controls

Swap text

Toggle between text states

Swap volume icons

Icon-based toggle with volume controls

Rotating icons

Add rotation effect during swap

Advanced

Complex swap patterns and alternative activation methods

Hamburger menu toggle

Animated icon transformation

Flip effect emojis

3D flip animation during swap

Class-based activation

Toggle state using JavaScript class manipulation

Class Reference

Class Type Description
swap Component Base container for swap elements
swap-on Part Visible when active
swap-off Part Visible when inactive
swap-indeterminate Part Visible when indeterminate
swap-active Modifier Force active state
swap-rotate Style Add rotation effect
swap-flip Style Add flip effect
Do you have a question? ask the community
Do you see a bug? open an issue on GitHub