CSS Library All examples
Welcome to Dynamic Drive's new CSS library! Here you'll find original, practical CSS codes and examples such as CSS menus to give your site a visual boast.
Responsive 2 column form
This is a clean, two column form that's also responsive, turning into a single column spanning the entire width of the page when the window's size is 480px or less.
Swinging keyframe animation
Using CSS3 keyframe animations, we can control the exact style of an element at any point in time. Here we use
keyframes to create a swinging effect, by modifying an element's rotation gradually over time until resting position, or 0 degrees.
Flipboard CSS buttons
Flipboard creates a series of CSS buttons that flip horizontally on themselves when the mouse rolls over them, creating an elegant, eye catching effect. It employs CSS3 transform and transitions to do the heavy work.
Rollover Text Menu
This CSS menu creates the popular rollover text effect of text sliding up to reveal a duplicate of itself when the mouse rolls over a menu item.
Split Drop Down Menu
Animated UL background effect
This CSS example demonstrates animating the
min-width property of an element to create a stretching background effect. Here we use the technique to add a nice rollover effect to UL lists, so the user can easily home in on a particular list item just by rolling the mouse over it. The animation uses CSS3, which works in IE10+, FF, Chrome, and Safari.
Vertical CSS3 Shadow Menu
This vertical CSS Menu uses CSS3's ability to define multiple/ inset shadows (so the shadow grows inwards) on an element to create menu items with a bevelled left edge and a growing inner glow when the mouse rolls over them.