GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

01Sun/moon icon swap

The sun icon rotates and morphs into a moon icon when toggled.

Best forHeader dark-mode button, settings menu

400ms회전 180°크로스페이드
Sun/moon icon swap
Open in a new tab

01 Sun/moon icon swap — Measured area 26.961% · moving frames 11/23Original by GODRICH · SCSS and React ship in the zip · 9 CSS Dark Mode Toggle Animations, One Line Each

The post this demo lives in

9 CSS Dark Mode Toggle Animations, One Line Each - preview of all 9 demos9 CSS Dark Mode Toggle Animations, One Line EachA css dark mode toggle flips a site's color scheme when it's switched, usually by toggling one class or custom property. See all demos in this post

If you like this effect - similar demos