So I have this really simple image slider this this page here http://charlesbergertattoos.com/tattoos which works just fine in IE and firefox. The animation is really smooth and the images actually slide, but in chrome it's not smooth at all.
- demo: http://jsbin.com/oruxip
because on click event your calling slider_animate()
directly your not calling your plugin
in chrome when you do that the slide_widths
var is 0 because you defined and executed the assignment logic outside of the event function so its static
you have 2 options put that line inside the function slider_animate
var slide_widths = $(e).find('.holder > li:first').width();
//correct the variables name accordingly
or call the plugin function itself which is imgSlider
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With