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

Tween color #434

Closed
Rycochet opened this issue Feb 6, 2015 · 2 comments
Closed

Tween color #434

Rycochet opened this issue Feb 6, 2015 · 2 comments

Comments

@Rycochet
Copy link
Collaborator

Rycochet commented Feb 6, 2015

Somebody just mentioned the BoxShadowColor feature request #263 and it gave me an idea.

Currently we have the tween:123 support for custom animations, but we don't have anything that can make use of Velocity's built in color animation (http://julian.com/research/velocity/#colors) - so as a suggestion somthing like passing a string to tween (ie something like tween:["red", "blue"] to have the tween value return the in-between color codes.

An alternative would be to expose some sort of method like $.Velocity.color(from, to, percent).

@julianshapiro
Copy link
Owner

you can already animate colors in velocity using forcefeeding, and you can independently target rgb values. i'm considering additional support (hsla) in the near future :)

if i misunderstood, lemme know!

@Rycochet
Copy link
Collaborator Author

I was thinking about it more in terms of where you have multiple comma separated values - ie being able to animate a background gradient smoothly - something that would either need a lot of code bloat, or the use of tween and progress callbacks ;-)

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

2 participants