Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame^] | 1 | .animation_flex (@value){ |
| 2 | -webkit-animation: @value; |
| 3 | -moz-animation: @value; |
| 4 | -o-animation: @value; |
| 5 | -ms-transition: @value; |
| 6 | animation: @value; |
| 7 | } |
| 8 | |
| 9 | .animation (@name, @duration: 300ms, @delay: 0, @ease: ease) { |
| 10 | -webkit-animation: @name @duration @delay @ease; |
| 11 | -moz-animation: @name @duration @delay @ease; |
| 12 | -o-animation: @name @duration @delay @ease; |
| 13 | -ms-animation: @name @duration @delay @ease; |
| 14 | animation: @name @duration @delay @ease; |
| 15 | } |
| 16 | |
| 17 | /* ============ flash ============ */ |
| 18 | .flash-frames () { |
| 19 | 0% { opacity: 1; } |
| 20 | 20% { opacity: 1; } |
| 21 | 50% { opacity: 0; } |
| 22 | 80% { opacity: 1; } |
| 23 | 100% { opacity: 1; } |
| 24 | } |
| 25 | @-webkit-keyframes flash {.flash-frames;} /* Safari, Chrome and Opera > 12.1 */ |
| 26 | @-moz-keyframes flash {.flash-frames;} /* Firefox < 16 */ |
| 27 | @-o-keyframes flash {.flash-frames;} /* Opera < 12.1 */ |
| 28 | @-ms-keyframes flash {.flash-frames;} /* Internet Explorer */ |
| 29 | @keyframes flash {.flash-frames;} |
| 30 | |
| 31 | /* ============ fadein ============ */ |
| 32 | .fadein-frames () { |
| 33 | from { opacity: 0; } |
| 34 | to { opacity: 1; } |
| 35 | } |
| 36 | @-webkit-keyframes fadein {.fadein-frames;} /* Safari, Chrome and Opera > 12.1 */ |
| 37 | @-moz-keyframes fadein {.fadein-frames;} /* Firefox < 16 */ |
| 38 | @-o-keyframes fadein {.fadein-frames;} /* Opera < 12.1 */ |
| 39 | @-ms-keyframes fadein {.fadein-frames;} /* Internet Explorer */ |
| 40 | @keyframes fadein {.fadein-frames;} |
| 41 | |
| 42 | /* ============ fadeout ============ */ |
| 43 | .fadeout-frames () { |
| 44 | from { opacity: 1; } |
| 45 | to { opacity: 0; } |
| 46 | } |
| 47 | @-webkit-keyframes fadeout {.fadeout-frames;} /* Safari, Chrome and Opera > 12.1 */ |
| 48 | @-moz-keyframes fadeout {.fadeout-frames;} /* Firefox < 16 */ |
| 49 | @-o-keyframes fadeout {.fadeout-frames;} /* Opera < 12.1 */ |
| 50 | @-ms-keyframes fadeout {.fadeout-frames;} /* Internet Explorer */ |
| 51 | @keyframes fadeout {.fadeout-frames;} |