gilbitron/Nivo-Slider — Issue #257: Effect 'slideInRight' grows rather than slides
Author: Jaybuz
Created: 2012-01-21 18:02:09+00:00
State: open

While working on my fork I discovered what could be considered a bug with the 'slideInRight' effect. The effect is created by increasing the slice's width but the default behaviour for background position is to start from the left so it actually looks like a 'growing' effect to me. 'slideInRight' actually slides in correctly.

I'd recommend just setting the left or right (accordingly) absolute positions to the width of the slider and then animate it to 0px. You'd also need to set the slice width to the full slider width.

I've updated this in my fork and optimized a lot of the code if you're interested. I've got the packed version down to 7900~ bytes using the Google Closure Compiler on advanced.

https://github.com/Jaybuz/Nivo-Slider