Skip to content

Multiple sliders, pagers and prev/next control all sliders #681

@sclander

Description

@sclander

I'm trying to use multiple instances of cycle2 on one page. Whenever I use the pager or prev/next buttons on one slider, the action is applied to all sliders on the page. I have distinct IDs for every pager and prev/next button, but the problem is still occurring. Here's a sample of what one of the instances looks like:

<div class="cycle-slideshow lightbox"
    data-cycle-prev="#prev-10606"
    data-cycle-next="#next-10606"
    data-cycle-pager="#pager-10606">

    <!-- IMAGES -->

    <div id="prev-10606" class="cycle-prev"></div>
    <div id="next-10606" class="cycle-prev"></div>
    <div id="pager-10606" class="cycle-prev"></div>
</div>

Any idea what might be causing this?

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