diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-29 21:31:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-29 21:31:06 +0100 |
| commit | 9ee5ff1f7181cc5fa575f1702802ccb78c21ba12 (patch) | |
| tree | aab51303b4d045d0633cfe122069456694fdf2e0 /example/hyprland.lua | |
| parent | 45ffaee09361110c018e962dbb3d93f7f1ee8e09 (diff) | |
animations: add springs (#14171)
Diffstat (limited to 'example/hyprland.lua')
| -rw-r--r-- | example/hyprland.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/example/hyprland.lua b/example/hyprland.lua index 16306bb2..dcc15342 100644 --- a/example/hyprland.lua +++ b/example/hyprland.lua @@ -139,10 +139,13 @@ hl.curve("linear", { type = "bezier", points = { {0, 0}, {1, 1} hl.curve("almostLinear", { type = "bezier", points = { {0.5, 0.5}, {0.75, 1} } }) hl.curve("quick", { type = "bezier", points = { {0.15, 0}, {0.1, 1} } }) +-- Default springs +hl.curve("easy", { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 }) + hl.animation({ leaf = "global", enabled = true, speed = 10, bezier = "default" }) hl.animation({ leaf = "border", enabled = true, speed = 5.39, bezier = "easeOutQuint" }) -hl.animation({ leaf = "windows", enabled = true, speed = 4.79, bezier = "easeOutQuint" }) -hl.animation({ leaf = "windowsIn", enabled = true, speed = 4.1, bezier = "easeOutQuint", style = "popin 87%" }) +hl.animation({ leaf = "windows", enabled = true, speed = 4.79, spring = "easy" }) +hl.animation({ leaf = "windowsIn", enabled = true, speed = 4.1, spring = "easy", style = "popin 87%" }) hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.49, bezier = "linear", style = "popin 87%" }) hl.animation({ leaf = "fadeIn", enabled = true, speed = 1.73, bezier = "almostLinear" }) hl.animation({ leaf = "fadeOut", enabled = true, speed = 1.46, bezier = "almostLinear" }) |
