Closed
Description
Currently when I want to animate, for instance, an element's background-color to black, I have to write code similar to this:
$(selector]).velocity({backgroundColorRed: 0, backgroundColorGreen: 0, backgroundColorBlue: 0})
I'd like to be able to use a shorthand, e.g.
$(selector]).velocity({backgroundColor: 'black'})
or even
$(selector]).velocity({backgroundColor: 'white'})
Turns out velocity.js already has code to translate color tokens into RGB tuples, but unfortunately I don't have time to patch it myself.
Metadata
Metadata
Assignees
Labels
No labels
Activity