treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Nested AnythingSliders

  • I have a test page setup with the latest AnythingSlider (v1.8.6) see link 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!

  • 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.

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