Skip to content

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

Description

@artemsky

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)");`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions