39
39
@include pulse ($animName : pulse- subtle, $dur : 500ms , $opacity0 : 0.7 );
40
40
}
41
41
42
- @mixin animTo ($animName , $propName , $propValStart , $propValEnd , $dur : 500ms , $delay : 0 ) {
42
+ @mixin animTo ($animName , $propName , $propValStart , $propValEnd , $dur : 500ms , $delay : 0 , $dir : normal , $count : 1 ) {
43
43
@include keyframes ($animName ) {
44
44
from { #{propName} : $propValStart ; }
45
45
to { #{$propName } : $propValEnd ; }
46
46
}
47
- @include animToParams ($animName , $dur : 500 ms , $delay : 0 )
47
+ @include animToParams ($animName , $dur : $dur , $delay : $delay , $dir : $dir , $count : $count )
48
48
}
49
49
50
- @mixin animToParams ($animName , $dur : 500ms , $delay : 0 ) {
50
+ @mixin animToParams ($animName , $dur : 500ms , $delay : 0 , $dir : normal , $count : 1 ) {
51
51
@include animation-name ($animName );
52
52
@include animation-duration ($dur );
53
53
@include animation-delay ($delay );
54
54
@include animation-fill-mode (both );
55
- @include animation-direction (normal );
56
- @include animation-iteration-count (1 );
55
+ @include animation-direction ($dir );
56
+ @include animation-iteration-count ($count );
57
57
@include animation-timing-function (ease-in-out );
58
58
}
0 commit comments