Added animation mixins
This commit is contained in:
		| @@ -34,6 +34,7 @@ | ||||
| @import './tools/flex.scss'; | ||||
| @import './tools/list.scss'; | ||||
| @import './tools/prefix.scss'; | ||||
| @import './tools/_animation.scss';  | ||||
| @import './tools/_transform.scss'; | ||||
| @import './tools/_responsive.scss'; | ||||
|  | ||||
|   | ||||
							
								
								
									
										39
									
								
								public/styles/tools/_animation.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								public/styles/tools/_animation.scss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| /* | ||||
|  *  Animation Tools | ||||
|  *    Provides common animation tools, as well as mixins. | ||||
|  * | ||||
|  *  Dependencies: | ||||
|  *    styles/settings/animation.scss | ||||
|  *    styles/tools/prefix.scss | ||||
|  * | ||||
|  *  Version: | ||||
|  *    1.0.0 - 2018/05/08 | ||||
|  */ | ||||
| @mixin t-keyframes($animation_name) { | ||||
|   @-webkit-keyframes #{$animation_name} { | ||||
|     @content; | ||||
|   } | ||||
|  | ||||
|   @-moz-keyframes #{$animation_name} { | ||||
|     @content; | ||||
|   } | ||||
|  | ||||
|   @keyframes #{$animation_name} { | ||||
|     @content; | ||||
|   } | ||||
| } | ||||
|  | ||||
| @mixin t-animation-name($animation_name) { | ||||
|   @include t-prefix-property("animation-name", $animation_name, webkit moz spec); | ||||
| } | ||||
|  | ||||
| @mixin t-animation-delay($animation_name) { | ||||
|   @include t-prefix-property("animation-delay", $animation_name, webkit moz spec); | ||||
| } | ||||
|  | ||||
| @mixin t-animation-duration($animation_name) { | ||||
|   @include t-prefix-property("animation-duration", $animation_name, webkit moz spec); | ||||
| } | ||||
| @mixin t-animation-fill-mode($animation_name) { | ||||
|   @include t-prefix-property("animation-fill-mode", $animation_name, webkit moz spec); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user