The CSS snippet collection contains utilities and interactive examples for CSS3. It includes modern techniques for creating commonly-used layouts, styling and animating elements, as well as snippets for handling user interactions.
CSS, Visual
We hand picked 25 of our favorite CSS gradients from uiGradients for your next design. Get them now!
CSS, Layout
Flexbox allows you to create fluid layouts easily. If you find yourself constantly looking up the syntax or how it work, this handy cheatsheet is all you need.
CSS, Animation
Creates a border animation on hover.
CSS, Animation
Creates a swing animation on focus.
CSS, Animation
Creates a fill animation on hover.
CSS, Animation
Creates a grow animation on hover.
CSS, Animation
Creates a shrink animation on hover.
CSS, Animation
Creates an animated underline effect when the user hovers over the text.
CSS, Animation
Creates a shake animation on invalid input.
CSS, Visual
Creates a striped list with alternating background colors.
CSS, Layout
Fits an positions an image appropriately inside its container while preserving its aspect ratio.
CSS, Visual
Adds a fading gradient to an overflowing element to better indicate there is more content to be scrolled.
CSS, Visual
Creates a toggle switch with CSS only.
CSS, Layout
Truncates text that is longer than one line.
CSS, Visual
The currentColor
CSS keyword is a nifty alternative to custom properties for simple use cases.