Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to stack presets and or modify properties from an animation preset #1321

Open
0neGal opened this issue Aug 21, 2024 · 0 comments
Labels
help wanted SOMEBODY PLEASE HELP

Comments

@0neGal
Copy link

0neGal commented Aug 21, 2024

Currently animation presets are limited to simply applying animation properties, and each preset can have some settings/knobs/placeholders, but there's no way to then set extra properties on top of these presets, nor is there a way to only override parts of a preset.

Effectively what I'm asking for is for something like this to work:

animations = ({
	triggers = [ "close", "hide" ];

	preset = "slide-out";

	duration = 0.2;
	direction = "down";

	opacity = {
		end = 0;
		start = 1;
		duration = "duration";
	}
})

Currently the extra properties aren't being used, and it instead only uses the properties set by the preset, same with setting properties that exist in the preset.

Adding this would be able to significantly simplify config files, especially together with #1320

@0neGal 0neGal mentioned this issue Aug 21, 2024
@yshui yshui added the help wanted SOMEBODY PLEASE HELP label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted SOMEBODY PLEASE HELP
Projects
None yet
Development

No branches or pull requests

2 participants