Skip to content

Commit

Permalink
animation/presets: add geometry-change preset
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Aug 12, 2024
1 parent 719f2a2 commit 191d114
Show file tree
Hide file tree
Showing 4 changed files with 361 additions and 1 deletion.
Binary file added assets/geometry-change.mp4
Binary file not shown.
41 changes: 40 additions & 1 deletion data/animation_presets.conf
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,43 @@ fly-in = {
(2, "direction", [-1, 1, 0, 0]),
(3, "direction", [0, 0, 1, 1]),
);
}
};
geometry-change = {
scale-x = {
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
duration = "placeholder0";
start = "window-width-before / window-width";
end = 1;
};
scale-y = {
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
duration = "placeholder0";
start = "window-height-before / window-height";
end = 1;
};
shadow-scale-x = "scale-x";
shadow-scale-y = "scale-y";
offset-x = {
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
duration = "placeholder0";
start = "window-x-before - window-x";
end = 0;
};
offset-y = {
curve = "cubic-bezier(0.07, 0.65, 0, 1)";
duration = "placeholder0";
start = "window-y-before - window-y";
end = 0;
};
saved-image-blend = {
duration = "placeholder0";
start = 1;
end = 0;
};
shadow-offset-x = "offset-x";
shadow-offset-y = "offset-y";
*knobs = {
duration = 0.4;
};
*placeholders = ((0, "duration"));
};
16 changes: 16 additions & 0 deletions man/picom.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,22 @@ endif::[]

_duration_:: Duration of the animation in seconds.
--
+
_geometry-change_:::
+
Animate the geometry (i.e. size and position) change of the window.
+
--
ifdef::env-web[]
video::assets/geometry-change.mp4[width=400]
endif::[]
--
+
--
*Options*:::

_duration_:: Duration of the animation in seconds.
--

=== Advanced

Expand Down
Loading

0 comments on commit 191d114

Please sign in to comment.