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

Allow for multiple animations #435

Open
leyanlo opened this issue Jul 25, 2023 · 0 comments
Open

Allow for multiple animations #435

leyanlo opened this issue Jul 25, 2023 · 0 comments

Comments

@leyanlo
Copy link

leyanlo commented Jul 25, 2023

Today, Styletron lets you add an animation with animationName, which takes in a KeyframesObject. However, CSS allows for multiple animations to be set, separated by commas, e.g.

animation: oscillate .8s 10s ease-in infinite, 
           expand 2s 4s ease-in infinite,
           move-clockwise-in 3s ease-in,
           toggle-bg-color-in 11s ease-in;

I don’t think there’s an easy way to update animationName to take in an array of KeyFrameObjects, since we would still have the problem of being able to set multiple durations/delays/timings/durations. Would it be possible to expose the renderKeyframes return value so we could do this ourselves in CSS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant