Skip to content

Allow for multiple animations #435

@leyanlo

Description

@leyanlo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions