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 additional presets #34

Open
esDotDev opened this issue Oct 28, 2022 · 0 comments
Open

Add additional presets #34

esDotDev opened this issue Oct 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@esDotDev
Copy link
Contributor

esDotDev commented Oct 28, 2022

Once issue #31 is finalized, it would be nice to add an initial layer of additional presets/variations using the architecture.

While there are unlimited tween behaviors one could think of, some common ones stand out at the top of the list:
(inspired by https://pub.dev/packages/animate_do and https://animate.style/)

FadeInUp
FadeInDown
FadeInLeft
FadeInRight

FadeOutUp
FadeOutDown
FadeOutLeft
FadeOutRight

SlideInUp
SlideInDown
SlideInLeft
SlideInRight

SlideOutUp
SlideOutDown
SlideOutLeft
SlideOutRight

FlipInX
FlipInY
FlipOutX
FlipOutY

ZoomIn
ZoomOut

BounceIn
BounceOut

Notably, some of these are simple variations of existing effects (SlideDown or ZoomIn), while others are composed of multiple effects (FadeInDown). Ideally the new system supports composition, so FadeInDown uses FadeIn + SlideInDown rather than re-creating their logic.

This issue could be thought of as a first pass at the most obvious presets, and then other presets could be considered in the future. Mostly this can serve as dogfood for issue #31

@gskinner gskinner added the enhancement New feature or request label Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants