Skip to content

Commit

Permalink
transition/presets: add slide-in/out, fly-in/out
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Aug 5, 2024
1 parent e2a87ad commit 1f2633b
Show file tree
Hide file tree
Showing 3 changed files with 581 additions and 7 deletions.
62 changes: 62 additions & 0 deletions data/animation_presets.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,65 @@ appear = {
duration = (0, 0.2);
};
};

slide-out = {
offset-x = {
curve = "cubic-bezier(0.21, 0.02, 0.76, 0.36)";
start = 0;
duration = "placeholder0";
end = "-window-width";
};
shadow-offset-x = "offset-x";
crop-x = "window-x";
opacity = 1;
blur-opacity = "opacity";
shadow-opacity = "opacity";
placeholders = {
duration = (0, 0.2);
};
};

slide-in = {
offset-x = {
curve = "cubic-bezier(0.24, 0.64, 0.79, 0.98)";
start = "-window-width";
duration = "placeholder0";
end = 0;
};
shadow-offset-x = "offset-x";
crop-x = "window-x";
placeholders = {
duration = (0, 0.2);
};
};

fly-out = {
offset-y = {
curve = "cubic-bezier(0.05, 0, 0.69, -0.05)";
duration = "placeholder0";
start = 0;
end = "- window-height - window-y";
};
shadow-offset-y = "offset-y";
opacity = 1;
shadow-opacity = 1;
blur-opacity = 1;
placeholders = {
duration = (0, 0.25);
};
};
fly-in = {
offset-y = {
curve = "cubic-bezier(0.17, 0.67, 0.68, 1.03)";
end = 0;
duration = "placeholder0";
start = "- window-height - window-y";
};
shadow-offset-y = "offset-y";
opacity = 1;
shadow-opacity = 1;
blur-opacity = 1;
placeholders = {
duration = (0, 0.25);
};
}
Loading

0 comments on commit 1f2633b

Please sign in to comment.