forge
Explore
Log in

Don't you dare go Hollow

wiki: Add easing example

Browse files at this commit

0845eef326142231acae84c4a068fa5c0a6e7e5fIvan MolodetskikhParent: 4d8cb3a
wiki/Configuration:-Animations.mdmodified+9 -0
@@ -49,6 +49,15 @@ To use this animation, set the following parameters:
49 - `duration-ms`: duration of the animation in milliseconds.49 - `duration-ms`: duration of the animation in milliseconds.
50 - `curve`: the easing curve to use.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 Currently, niri only supports two curves: `ease-out-cubic` and `ease-out-expo`.61 Currently, niri only supports two curves: `ease-out-cubic` and `ease-out-expo`.
53 You can get a feel for them on pages like [easings.net](https://easings.net/).62 You can get a feel for them on pages like [easings.net](https://easings.net/).
54 63