aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Animations.md
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-26 18:35:48 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-26 18:35:48 +0400
commit0845eef326142231acae84c4a068fa5c0a6e7e5f (patch)
treec4a6b6d2c346cc979ac6bb225afc0086e05ab1df /wiki/Configuration:-Animations.md
parent4d8cb3a6e32fc06ad461a58d257c4f619db703b2 (diff)
downloadniri-0845eef326142231acae84c4a068fa5c0a6e7e5f.tar.gz
niri-0845eef326142231acae84c4a068fa5c0a6e7e5f.tar.bz2
niri-0845eef326142231acae84c4a068fa5c0a6e7e5f.zip
wiki: Add easing example
Diffstat (limited to 'wiki/Configuration:-Animations.md')
-rw-r--r--wiki/Configuration:-Animations.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/wiki/Configuration:-Animations.md b/wiki/Configuration:-Animations.md
index 5a397de8..dbb1f050 100644
--- a/wiki/Configuration:-Animations.md
+++ b/wiki/Configuration:-Animations.md
@@ -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/).