HTML CSS examples for CSS Widget:Button
Transition on gradient button
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .btn_primary {<!-- w ww. j ava 2 s .c o m--> background-color:Chartreuse; background-image:linear-gradient(to bottom, transparent 0%, yellow 100%); color:blue; display:block; font-family:arial,sans-serif; font-size:13px; padding:6px 11px; text-align:center; text-decoration:none; transition:background-color 0.6s ease 0s; width:76px; } .btn_primary:hover { background-color:pink; } </style> </head> <body> <a class="btn_primary" href="#">Lorem ip</a> </body> </html>