This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
forked from geoffgraham/animate.scss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_properties.scss
executable file
·64 lines (52 loc) · 1.56 KB
/
_properties.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// duration Specifies how many seconds or milliseconds an animation takes to complete one cycle. Default 0
//
// delay Specifies when the animation will start. Default 0
//
// function Describes how the animation will progress over one cycle of its duration. Default "ease"
//
// count Specifies the number of times an animation is played. Default 1
//
// fill-mode Specifies if the effects of an animation are before the animation starts and after it ends.
//
// visibility Determines whether or not a transformed element is visible when it is not facing the screen.
$countDefault: 1s !default;
$durationDefault: 1s !default;
$delayDefault: 0s !default;
$functionDefault: ease !default;
$fillDefault: both;
$visibilityDefault: hidden !default;
@mixin count($count: 1) {
animation-iteration-count: $count;
}
@mixin duration($duration: 1s) {
animation-duration: $duration;
}
@mixin delay($delay: .2s) {
animation-delay: $delay;
}
@mixin function($function: ease) {
animation-timing-function: $function;
}
@mixin fill-mode($fill: both) {
animation-fill-mode: $fill;
}
@mixin visibility($visibility: hidden) {
backface-visibility: $visibility;
}
@mixin transform($property) {
transform: $property;
}
@mixin transform-origin($transform-origin: center center) {
transform-origin: $transform-origin;
}
@mixin transform-style($transform-style: flat) {
transform-style: $transform-style;
}
@mixin animation-name($animation-name) {
animation-name: $animation-name;
}
@mixin keyframes($animation-name) {
@keyframes #{$animation-name} {
@content;
}
}