Hosting Solutions
mobile_logo Table of Contents

Pure CSS Animated Menu Button Transitions

Learn to animate buttons easily using the CSS3 transition property to target any and every animate-able property you know of in CSS. We are targeting simple hover behavior to get a roll-over(mouseover) and roll-out(mouseout) animation effect. In order to target more user interactive behaviors(such as click behavior) you can apply one line of JavaScript that fires off the CSS3 transition property at any time in your applications. <!DOCTYPE html> <html> <head> <style> body{ background:#000; margin:0px; } div#menubar1{ padding: 24px; border:#999 1px dashed; } div#menubar1 > a{ font-family:Arial, Helvetica, sans-serif; font-size:17px; background: #333; padding: 12px 24px; color:#999; margin-right: 10px; text-decoration:none; border-radius: 3px; transition: background 0.3s linear 0s, color 0.3s linear 0s; } div#menubar1 > a:hover{ background: #6F8A00; color:#FFF; } </style> </head> <body> <div id="menubar1"> <a href="#">Home</a><a href="#">About us</a><a href="#">Services</a><a href="#">Staff</a><a href="#">Contact</a> </div> </body> </html>

CSS Videos

Animation Rigging

Holiday Christmas Lights Animation Tutorial CSS JavaScriptParallax Effect Animation Multiple Background CSS TutorialBackground Position keyframes Animation CSS TutorialFolding Content Nav Menu CSS3 Animation JavaScript TutorialPure CSS Animated Menu Button Transitionskeyframes Animation Tutorial Floating ElementsAnimated Repeating Tile Background keyframes TutorialFlip 3D Boxes and Cards Animation CSS TutorialFlash and Pulse Effects keyframes Animation TutorialImage Zoom Effect Animation CSS3 HTML Tutorial