From 0845eef326142231acae84c4a068fa5c0a6e7e5f Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 26 Mar 2024 18:35:48 +0400 Subject: wiki: Add easing example --- wiki/Configuration:-Animations.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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/). -- cgit