CodeMaster/public/css/mixin/_animation.scss

54 lines
810 B
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* [css3过渡动画]
* @param {[string]} $el [eg'.pressRotate']
*/
@mixin myMove ($el) {
#{$el} {
-webkit-animation: mymove .5s ease-in;
-moz-animation: mymove .5s ease-in;
-o-animation: mymove .5s ease-in;
animation: mymove .5s ease-in;
}
@keyframes mymove {
0% {
transform: rotateX(0deg);
}
100% {
transform: rotateX(360deg);
}
}
@-moz-keyframes mymove {
0% {
transform: rotateX(0deg);
}
100% {
transform: rotateX(360deg);
}
}
@-webkit-keyframes mymove {
0% {
transform: rotateX(0deg);
}
100% {
transform: rotateX(360deg);
}
}
@-o-keyframes mymove {
0% {
transform: rotateX(0deg);
}
100% {
transform: rotateX(360deg);
}
}
}