File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -104,15 +104,19 @@ calculating the animation:
104
104
#### Arguments
105
105
106
106
- ` startProps ` (_ Object_ ): The start properties for the animation.<br >
107
+
107
108
``` javascript
108
109
// `startProps` example
109
110
{ ' margin-left' : ' 0px' , opacity: 0 }
110
111
```
112
+
111
113
- ` endProps` (_Object_): The end properties for the animation.< br>
114
+
112
115
` ` ` javascript
113
116
// ` endProps` example
114
117
{ 'margin-left': '250px', opacity: 1 }
115
118
` ` `
119
+
116
120
- ` options` (_Object_, optional): Animation options with these properties:
117
121
- ` precision` (_Number_, optional, defaults to ` 3` ) Specifies the number of decimals in the rounding of interpolated values.
118
122
- ` preset` (_String_, optional): Presets for ` stiffness` and ` damping` , overriding any stiffness and damping values given . Available presets:
@@ -146,6 +150,7 @@ This method takes the return value of `spring` and converts it to a css string.
146
150
147
151
- ` keyframes` (_Object_): The interpolated animation values object given by ` spring` .
148
152
- ` formatter` (_Function_, optional): The formatter function that is invoked for every property/value combination.
153
+
149
154
```javascript
150
155
// default formatter
151
156
(property , value ) => `${property}: ${value};`
You can’t perform that action at this time.
0 commit comments