HTML CSS examples for CSS Widget:Hover Animation
Hover and transform
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .button {<!--from ww w . j av a2s . c o m--> width:auto; background-color:Chartreuse; color:yellow; transform:translateY(51px); -webkit-transition:2s ease-in-out; -moz-transition:2s ease-in-out; -o-transition:2s ease-in-out; transition:2s ease-in-out; } .button:hover { background-color:blue; color:pink; -webkit-transform:translateY(51px) scale(2.3); -moz-transform:translateY(51px) scale(2.3); -o-transform:translateY(51px) scale(2.3); -ms-transform:translateY(51px) scale(2.3); transform:translateY(51px) scale(2.3); } </style> </head> <body> <button class="button">Lore</button> <button class="button">Lore</button> <button class="button">Lore</button> <button class="button">Lore</button> </body> </html>