Created
July 19, 2013 21:10
-
-
Save gunnarbittersmann/6042372 to your computer and use it in GitHub Desktop.
CSS animation, Safari problem
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
| /** | |
| * CSS animation, Safari problem | |
| */ | |
| @keyframes makeVisible { | |
| from {transform: rotate(0deg);} | |
| to {transform: rotate(360deg);} | |
| } | |
| @-webkit-keyframes makeVisible { | |
| 0% { -webkit-transform:rotate(0deg); } | |
| 100% { -webkit-transform:rotate(360deg); } | |
| } | |
| #animation { | |
| position: relative; | |
| width: 300px; | |
| height: 300px; | |
| margin: 80px; | |
| line-height: 300px; | |
| text-align: center; | |
| z-index: 2; | |
| } | |
| #animation::before { | |
| content: ""; | |
| position: absolute; | |
| left: 0; | |
| width: 300px; | |
| height: 300px; | |
| border: 1px solid #999; | |
| background-color: #FCC; | |
| z-index: -1; | |
| animation-name: makeVisible; | |
| animation-duration: 4s; | |
| animation-iteration-count: infinite; | |
| animation-timing-function: linear; | |
| -webkit-animation-name: makeVisible; | |
| -webkit-animation-duration: 4s; | |
| -webkit-animation-timing-function: linear; | |
| -webkit-animation-delay: initial; | |
| -webkit-animation-iteration-count: infinite; | |
| -webkit-animation-direction: initial; | |
| -webkit-animation-fill-mode: initial; | |
| } |
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
| <div id="animation"> | |
| Hier soll der "Hintergrund" rotieren ... | |
| </div> |
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
| // alert('Hello world!'); |
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
| {"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment