CSS-Tricks / MovingBoxes

Simple horizontal slider which grows up the current box when it's in focus (image, title & text) and back down when it's not in focus.
http://css-tricks.github.io/MovingBoxes/
GNU Lesser General Public License v3.0
280 stars 147 forks source link

delay #80

Closed Alfazo closed 11 years ago

Alfazo commented 12 years ago

Hi,

is there any way to make a delay on the "next/previous" animation, like in anythingSlider?

I tried adding a delay to line 343 of the movingboxes.js, but to no avail.

Mottie commented 12 years ago

You need a delay before animation?

Alfazo commented 12 years ago

Yeah, I'm using beforeAnimation to call a scrolltop, which will move the page vertically before moving the slideshow horizontally. In anythingSlider, setting the 'delay' option to the same value as the scrolltop, which is the effect I'm trying to replicate with movingboxes.

Mottie commented 12 years ago

Ok, I'll look into adding this option.

Alfazo commented 12 years ago

Awesome, cheers!

Mottie commented 12 years ago

I added a delay option named delayBeforeAnimate in version 2.3. Sorry for taking so long to get this done!