sociomantic-tsunami / zoidberg

CSS Animation API
MIT License
0 stars 1 forks source link

Create the Rule class #4

Closed jolene-borrelli-sociomantic closed 7 years ago

jolene-borrelli-sociomantic commented 7 years ago

The rule could contain:

animation duration: {str} : in seconds, s. animation name {str} : straight up animation name

The animation name and duration are the minimal requirements (aside from keyframe information of course) for an animation to work so perhaps they should be auto-generated/defaults if the rule class is instantiated without them.

Additional props include animation-delay, animation-direction, animation-duration, animation-iteration-count, animation-name, animation-play-state, animation-timing-function, animation-fill-mode.