Last active
October 10, 2015 11:18
-
-
Save hiro3/3682327 to your computer and use it in GitHub Desktop.
CSS3 hop effects
This file contains 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
#point { | |
position:absolute; | |
width:8px; | |
height:8px; | |
margin:-4px 0 0 -4px; | |
background:-webkit-gradient(linear,left top,left bottom,from(#FFACCB),color-stop(0.5,#FF73A7),to(#FF5E99)); | |
border-radius:4px; | |
box-shadow:0 2px 3px #333 | |
} | |
#point.hop { | |
-webkit-animation-name:'hop'; | |
-webkit-animation-duration:0.3s; | |
} | |
@-webkit-keyframes 'hop' { | |
0% { | |
-webkit-transform:scale(1) | |
} | |
25% { | |
-webkit-transform:scale(0.5) | |
} | |
50% { | |
-webkit-transform:scale(1.5) | |
} | |
75% { | |
-webkit-transform:scale(0.75) | |
} | |
100% { | |
-webkit-transform:scale(1) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment