Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Nested AnythingSliders

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41207
    sboutros
    Member

    I have a test page setup with the latest AnythingSlider (v1.8.6) [see link](http://inthrma.com/new/ “see test page”)
    Everything works well except when slide #1 is re-loaded (the nested AS re-renders in an odd way)

  • s render natively then render per AS css.

    To repro: Load above link. scroll through 3 panels. When returning back to #1, watch the embedded AS render…

    Any ideas on what is causing this or a fix?

    Thanks!

#116557
Mottie
Member

Hi sboutros!

Try initializing `#slider2` first. The problem is that `#slider1` is cloning the first and last slides and because `#slider2` is an ID, only the first copy of that slider is being initialized.

Maybe a better solution would be to use a slider2 class name instead of an ID.

#116558
sboutros
Member

Brilliant!
Initing #slider2 first, works like a charm.
Thanks for the great tip!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.