rileyjshaw / sweep

:rainbow: A JavaScript library for smooth color transitions
http://rileyjshaw.com/sweep/
MIT License
444 stars 31 forks source link

Looping sweep? #3

Closed nicksantan closed 10 years ago

nicksantan commented 10 years ago

Is it possible to create an infinite loop... but also to be able to break that recursive loop if need be? I notice on your homepage you're using a similar technique for the background color. My problem is I would like to be able to stop and restart that animation at will on hover off or on. It would be great to have a loop that could be cancelled, paused, etc.

rileyjshaw commented 10 years ago

A few people have asked for the ability to break out of a loop; I'm pretty swamped right now but I'll log an issue and get to it as soon as I can.

Cheers,

rileyjshaw commented 10 years ago

Covered in #4

rileyjshaw commented 9 years ago

Hi @ChubbRck,

4 is closed and added, bringing sweep to v1.2.0. This adds support for pausing and resuming animations.

I've updated the docs, let me know if anything is unclear!