Commit eb200a8 1 parent 66f44ab commit eb200a8 Copy full SHA for eb200a8
File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## Unreleased
4
+
5
+ ### Fixed
6
+
7
+ - Default transition values of ` none ` are now correctly ignored. [ #231 ] ( https://github.com/scrollreveal/scrollreveal/issues/231 )
8
+
9
+ ### Fixed
10
+
3
11
## [ 4.0.5] - 2018-10-20
4
12
5
13
### Fixed
Original file line number Diff line number Diff line change @@ -171,10 +171,13 @@ export default function style(element) {
171
171
}
172
172
173
173
/**
174
- * The default computed transition property should be one of:
175
- * undefined || '' || 'all 0s ease 0s' || 'all 0s 0s cubic-bezier()'
174
+ * The default computed transition property should be undefined, or one of:
175
+ * '' || 'none 0s ease 0s ' || 'all 0s ease 0s' || 'all 0s 0s cubic-bezier()'
176
176
*/
177
- if ( transition . computed && ! transition . computed . match ( / a l l 0 s / ) ) {
177
+ let hasCustomTransition =
178
+ transition . computed && ! transition . computed . match ( / a l l 0 s | n o n e 0 s / )
179
+
180
+ if ( hasCustomTransition ) {
178
181
transition . fragments . unshift ( {
179
182
delayed : transition . computed ,
180
183
instant : transition . computed
You can’t perform that action at this time.
0 commit comments