It has one color but animation is colorful. How did it happen? Click and see it.
Created
May 11, 2014 12:53
-
-
Save keremciu/d59fdd63dcc559944b92 to your computer and use it in GitHub Desktop.
A Pen by keremciu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Let's hover box</p> | |
<a class="box">Box</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is a CSS3 Trick for your buttons, boxes. | |
@keremciu | |
* Box has one color but animation is colorful! | |
- translateZ(0) value, need for retina displays. Don't forget it. | |
------------------------------------- | |
Also I used it this: | |
http://keremciu.com/connect | |
hover the social icons and see animation. | |
*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: Helvetica,Helvetica Neue,Arial; | |
} | |
p { | |
text-align:center; | |
color:#999; | |
} | |
.box { | |
margin:0 auto; | |
height:200px; | |
width:200px; | |
background:#EE3522; | |
display:block; | |
text-align:center; | |
line-height:200px; | |
color:white; | |
font-size:36px; | |
-webkit-transition:0.5s ease-out;-moz-transition: 0.5s ease-out;-o-transition: 0.5s ease-out;-ms-transition: 0.5s ease-out;transition:0.5s ease-out; | |
border-radius:40%; | |
} | |
.box:hover { | |
-webkit-transform: translateZ(0) rotate(360deg);-webkit-filter: hue-rotate(360deg);transform: translateZ(0) rotate(360deg); | |
border-radius:100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment