julianshapiro / velocity

Accelerated JavaScript animation.
VelocityJS.org
MIT License
17.29k stars 1.56k forks source link

loop:true backgroundpositionX #371

Closed Omniferum closed 9 years ago

Omniferum commented 9 years ago

Rummaging around I can't seem to find any method that just allows for an infinite loop without it reversing the animation at the end of the current animation. Is there any syntax/trick to looping without reversing?

julianshapiro commented 9 years ago

Show me an example fiddle of what behavior you want to see

On Fri, Nov 28, 2014 at 6:43 AM, Yehonatan Daniv notifications@github.com wrote:

There all ready a few issues here (most are closed) regarding this, just look those up.

— Reply to this email directly or view it on GitHub https://github.com/julianshapiro/velocity/issues/371#issuecomment-64900602 .

Omniferum commented 9 years ago

These are good already existing examples of infinite scrolling images. It's CSS3 powered.

http://codepen.io/anon/pen/hdoIk

http://thecodeplayer.com/walkthrough/pure-css3-animated-clouds-background

maxsteenbergen commented 9 years ago

I'd like to see this implemented as well. My animation scales from 0% to 100%, after which I'd like to immediately start at 0% again with reversing first, thus creating a pulse

julianshapiro commented 9 years ago

Fixed! coming in tomorrow's release :)

MathieuLoutre commented 9 years ago

Any way to get that for 360 rotations too? Or maybe an alternate option to set to true or false? That would be pretty useful for loaders and such. Thanks for the hard work!

julianshapiro commented 9 years ago

That should already work with rotation. Does it not work for you?

Sent from my phone

On Jan 6, 2015, at 1:39 AM, Mathieu Triay notifications@github.com wrote:

Any way to get that for 360 rotations too? Or maybe an alternate option to set to true or false? That would be pretty useful for loaders and such. Thanks for the hard work!

— Reply to this email directly or view it on GitHub.

MathieuLoutre commented 9 years ago

Sorry, haven't actually tried it, I just based my comment off the commit log. Will report if I have any problems but good to hear it's been taken into account already!