Skip to content

YUI animations should support 'modes' like once/bounce and 'repeat' should allow specifying a repeat count #106

@shdwcat

Description

@shdwcat

Currently animations can only trigger from a start value to and end value, and either do that animation once over the duration, or repeatedly do that animation forever. You can add 'counts' by using an array of animations, which is very clunky. If you want to do a 'bounce' style animation where we animate to some value and then back, you have to use an array and either use an opposite curve for the return, or invert the from/to values.

Instead, animations should support modes:

  • once - animate along the curve once (default)
  • bounce - animate along the curve and then back in reverse

And instead of the existing 'repeat' value just being true or false for 'forever', you could also specify a number in order to repeat that many times

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions