Created
September 16, 2016 02:11
-
-
Save tranquangchau/9efd7acc9e14a1ed0f75e4f99fba816a to your computer and use it in GitHub Desktop.
http://l-lin.github.io/font-awesome-animation/ http://bootsnipp.com/snippets/featured/glyphicon-animate-rotation-and-flip
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
| <link rel="stylesheet" type="text/css" href="http://192.168.1.20/fantacy/css/glyphicons.css" /> | |
| <i class="glyphicons refresh gly-spin"></i> | |
| <style> | |
| .glyphicons{ | |
| padding-left:0; | |
| } | |
| .gly-spin { | |
| -webkit-animation: spin 2s infinite linear; | |
| -moz-animation: spin 2s infinite linear; | |
| -o-animation: spin 2s infinite linear; | |
| animation: spin 2s infinite linear; | |
| } | |
| @-moz-keyframes spin { | |
| 0% { | |
| -moz-transform: rotate(0deg); | |
| } | |
| 100% { | |
| -moz-transform: rotate(359deg); | |
| } | |
| } | |
| @-webkit-keyframes spin { | |
| 0% { | |
| -webkit-transform: rotate(0deg); | |
| } | |
| 100% { | |
| -webkit-transform: rotate(359deg); | |
| } | |
| } | |
| @-o-keyframes spin { | |
| 0% { | |
| -o-transform: rotate(0deg); | |
| } | |
| 100% { | |
| -o-transform: rotate(359deg); | |
| } | |
| } | |
| @keyframes spin { | |
| 0% { | |
| -webkit-transform: rotate(0deg); | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| -webkit-transform: rotate(359deg); | |
| transform: rotate(359deg); | |
| } | |
| } | |
| .gly-rotate-90 { | |
| filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); | |
| -webkit-transform: rotate(90deg); | |
| -moz-transform: rotate(90deg); | |
| -ms-transform: rotate(90deg); | |
| -o-transform: rotate(90deg); | |
| transform: rotate(90deg); | |
| } | |
| .gly-rotate-180 { | |
| filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); | |
| -webkit-transform: rotate(180deg); | |
| -moz-transform: rotate(180deg); | |
| -ms-transform: rotate(180deg); | |
| -o-transform: rotate(180deg); | |
| transform: rotate(180deg); | |
| } | |
| .gly-rotate-270 { | |
| filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); | |
| -webkit-transform: rotate(270deg); | |
| -moz-transform: rotate(270deg); | |
| -ms-transform: rotate(270deg); | |
| -o-transform: rotate(270deg); | |
| transform: rotate(270deg); | |
| } | |
| .gly-flip-horizontal { | |
| filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); | |
| -webkit-transform: scale(-1, 1); | |
| -moz-transform: scale(-1, 1); | |
| -ms-transform: scale(-1, 1); | |
| -o-transform: scale(-1, 1); | |
| transform: scale(-1, 1); | |
| } | |
| .gly-flip-vertical { | |
| filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); | |
| -webkit-transform: scale(1, -1); | |
| -moz-transform: scale(1, -1); | |
| -ms-transform: scale(1, -1); | |
| -o-transform: scale(1, -1); | |
| transform: scale(1, -1); | |
| } | |
| </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment