1 parent 266f50d commit 0fbd723Copy full SHA for 0fbd723
1 file changed
README.md
@@ -191,15 +191,15 @@ a {
191
Allow to set custom easings:
192
193
```js
194
- require('postcss-spring-easing').default({
195
- easings: {
196
- bounceOut: t => {
197
- let pow2, b = 4;
198
- while (t < ((pow2 = Math.pow(2, --b)) - 1) / 11) { }
199
- return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow((pow2 * 3 - 2) / 22 - t, 2);
200
- },
201
- }
202
- })
+require('postcss-spring-easing').default({
+ easings: {
+ bounceOut: t => {
+ let pow2, b = 4;
+ while (t < ((pow2 = Math.pow(2, --b)) - 1) / 11) { }
+ return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow((pow2 * 3 - 2) / 22 - t, 2);
+ },
+ }
+})
203
```
204
205
The plugin will convert custom easing name between camelCase and snake-case.
0 commit comments