You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -55,7 +50,7 @@ Tiler animations can be easily defined with a simple convention in your CSS.
55
50
*`start` the beginning state of a CSS animation
56
51
* This property is treated like a reset. If you use multiple animations, you need to make sure this property will reset ALL styles a given tile may be involved with. For example if you animate using `top`, but you are defining a new animation that animates with `left`, you still need to set `top` to `0` in case it was set to something else from a _different_ animation. __<sup>example below -1-</sup>__
57
52
*`end` the end state of a CSS animation
58
-
*`reverse`tiler can automatically reverse animations by switching using `start` as the `end` state, and vice-versa. If you need to customize the reverse, you can nest additional animations under a `reverse` class. __<sup>example below -2-</sup>__
53
+
*`reverse` If you need to customize the reverse animation, you can nest additional animations under a `reverse` class. __<sup>example below -2-</sup>__
59
54
* Only define `transition-property` on the specific animations, and only for the specific attributes you are animating. __<sup>example below -3-</sup>__
60
55
61
56
```sass
@@ -86,6 +81,19 @@ Tiler animations can be easily defined with a simple convention in your CSS.
86
81
&.end
87
82
left: -100%
88
83
84
+
// -2- reverse styles
85
+
&.reverse
86
+
&.enter
87
+
&.start
88
+
left: -100%
89
+
&.end
90
+
left: 0%
91
+
&.exit
92
+
&.start
93
+
left: 0%
94
+
&.end
95
+
left: 100%
96
+
89
97
// slide up (slide in from the bottom)
90
98
&.slide-vertical
91
99
@@ -125,19 +133,6 @@ Tiler animations can be easily defined with a simple convention in your CSS.
125
133
opacity: 1
126
134
&.end
127
135
opacity: 1
128
-
129
-
// -2- reverse styles for when using the `<` convention (e.g. `fade<`)
0 commit comments