Created
February 24, 2015 14:31
-
-
Save mattgipson/6a6e54fc71c50766bc7b to your computer and use it in GitHub Desktop.
Pulsating Arrow CSS Only
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
| /* arrow fades in and out, use for a 'scroll down' indicator for example */ | |
| #godown { | |
| position:absolute; | |
| bottom:20px; | |
| left:50%; | |
| margin-left:-10px; | |
| width:20px;height:20px; | |
| display:block; | |
| transform: rotate(45deg) ; | |
| -webkit-transform: rotate(45deg) ; | |
| -moz-transform: rotate(45deg) ; | |
| -o-transform: rotate(45deg) ; | |
| -ms-transform: rotate(45deg) ; | |
| .arrow { | |
| border-bottom:3px solid #333; | |
| border-right:3px solid #333; | |
| -webkit-animation: pulsate 1s ease-out; | |
| animation: pulsate 1s ease-out; | |
| -webkit-animation-iteration-count: 99; | |
| animation-iteration-count:00; | |
| opacity: 1.0; | |
| width:20px;height:20px; | |
| display:block; | |
| } | |
| } | |
| @-webkit-keyframes pulsate { | |
| 0% {-webkit-transform: scale(1.0, 1.0); opacity: 0.0;} | |
| 50% {opacity: 1.0;} | |
| 100% {-webkit-transform: scale(1.0, 1.0); opacity: 0.0;} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment