mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
wiki: Add easing example
This commit is contained in:
@@ -49,6 +49,15 @@ To use this animation, set the following parameters:
|
||||
- `duration-ms`: duration of the animation in milliseconds.
|
||||
- `curve`: the easing curve to use.
|
||||
|
||||
```
|
||||
animations {
|
||||
window-open {
|
||||
duration-ms 150
|
||||
curve "ease-out-expo"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Currently, niri only supports two curves: `ease-out-cubic` and `ease-out-expo`.
|
||||
You can get a feel for them on pages like [easings.net](https://easings.net/).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user