wiki: Add easing example
Browse files at this commit0845eef326142231acae84c4a068fa5c0a6e7e5fParent: 4d8cb3a1 changed file +9 -0
wiki/Configuration:-Animations.mdmodified+9 -0
| @@ -49,6 +49,15 @@ To use this animation, set the following parameters: | ||
| 49 | 49 | - `duration-ms`: duration of the animation in milliseconds. |
| 50 | 50 | - `curve`: the easing curve to use. |
| 51 | 51 | |
| 52 | +``` | |
| 53 | +animations { | |
| 54 | + window-open { | |
| 55 | + duration-ms 150 | |
| 56 | + curve "ease-out-expo" | |
| 57 | + } | |
| 58 | +} | |
| 59 | +``` | |
| 60 | + | |
| 52 | 61 | Currently, niri only supports two curves: `ease-out-cubic` and `ease-out-expo`. |
| 53 | 62 | You can get a feel for them on pages like [easings.net](https://easings.net/). |
| 54 | 63 |