itemslide icon indicating copy to clipboard operation
itemslide copied to clipboard

Feature: Reposition on window resize (without .reload())

Open artemsky opened this issue 8 years ago • 1 comments

Hi. I am pretty sure that you need to add "reposition" event.

Explaining why:

At my webapp, by selecting slider item its load content to another window, which has an ifarme inside (youtube video). 1st i tried to use Slider.reload() on window.resize() event But i met a problem after i opened my video at full screen. It called window.resize() event. And slider did reload, and my ifame with my video just gone.

So i found solution by myself, and hope you add this event, because i like your lib!

let width = 0; this.Slider.find("li").each(function(){ width+= $(this).outerWidth(); }); this.Slider.css("transform", translate3d(($(window).width() - width - this.Slider.find(".itemslide-active").outerWidth())/2 + "px, 0px, 0px)");`

artemsky avatar Apr 07 '16 16:04 artemsky

Same here

DarioLopes avatar Mar 24 '17 23:03 DarioLopes