basic hover color transition

In this example below you will see how to do a basic hover color transition with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by projodesign, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright projodesign ©
  • HTML
  • CSS
  • JavaScript
    <div class="ball">
</div>

/*Downloaded from https://www.codeseek.co/projodesign/basic-hover-color-transition-xbLEK */
    .ball {
width:200px;
  height:200px;
  background:red;
  margin:0 auto;
  -webkit-transition:1s linear;
  -webkit-transition-duration:infinite;
  
}

.ball:hover {
background:yellow;
  -webkit-transform:rotateY(360deg);
 
}


/*Downloaded from https://www.codeseek.co/projodesign/basic-hover-color-transition-xbLEK */
    

Comments