Skip to content

Commit

Permalink
docs: fix spacing in code block [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio committed May 29, 2023
1 parent 266f50d commit 0fbd723
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ a {
Allow to set custom easings:

```js
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);
},
}
})
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);
},
}
})
```

The plugin will convert custom easing name between camelCase and snake-case.
Expand Down

0 comments on commit 0fbd723

Please sign in to comment.