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

08Pane that flips between code and result

One pane alternates between the code and the thing that code draws, and the switch is cut in a single frame so the two layers never ghost through each other. The active side is also held in aria-pressed, so it is clear which of the two buttons is on.

Best forCSS effect write-ups where the result explains the code

aria-pressedsteps(1, end)visibility
Pane that flips between code and result
Open in a new tab

08 Pane that flips between code and result — Measured area 11.172% · moving frames 16/23Original by GODRICH · SCSS and React ship in the zip · 9 Code Block UI Patterns — No Highlighter Library

The post this demo lives in

9 Code Block UI Patterns — No Highlighter Library - preview of all 9 demos9 Code Block UI Patterns — No Highlighter LibraryA code block UI is the small frame built around a snippet — header, copy button, tabs — that tells a reader what they ar See all demos in this post

If you like this effect - similar demos