Change the direction of gradient on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to change

Description

Change the direction of gradient on hover

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.button-1 {<!-- ww w  . j  a v a 2s . c  om-->
   border:2px solid Chartreuse;
   border-radius:3px;
   color:yellow;
   background-color:blue;
   background-image:linear-gradient(pink 21%, OrangeRed 81%);
   font-size:14px;
   padding:11px;
}

.button-1:hover {
   background-color:grey;
   background-image:linear-gradient(BlueViolet 21%, Chartreuse 81%);
}
</style> 
 </head> 
 <body> 
  <div class="button-1">
    Lorem ipsum d 
  </div>  
 </body>
</html>

Related Tutorials