File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed
src/animations/TweenTransform Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ Transitions the wrapped element from one transform property to another. Any vali
66
66
67
67
Key | Description | Example | Type | Default Value
68
68
------------ | -------------| -------------| -------------| -------------
69
- enter | the ` entering ` and ` entered ` transform value | ` 'translateX(100px)' ` | * string* | ` 'none' `
70
- exit | the ` exiting ` and ` exited ` transform value | ` 'translateX(100px)' ` | * string* | ` 'none' `
69
+ enter | the ` etnered ` and ` exiting ` transform value | ` 'translateX(100px)' ` | * string* | ` 'none' `
70
+ exit | the ` entering ` and ` exited ` transform value | ` 'translateX(100px)' ` | * string* | ` 'none' `
71
71
72
72
#### Examples
73
73
Original file line number Diff line number Diff line change @@ -8,18 +8,11 @@ import {
8
8
getTimeoutValue ,
9
9
} from 'utilities' ;
10
10
11
- const TweenTransform = ( {
12
- children,
13
- enter,
14
- exit,
15
- entering,
16
- exiting,
17
- ...props
18
- } ) => {
11
+ const TweenTransform = ( { children, enter, exit, ...props } ) => {
19
12
const pos = {
20
- entering : entering || enter ,
13
+ entering : exit ,
21
14
entered : enter ,
22
- exiting : exiting || exit ,
15
+ exiting : enter ,
23
16
exited : exit ,
24
17
} ;
25
18
You can’t perform that action at this time.
0 commit comments