roundabout
roundabout copied to clipboard
Allow selectors for btnNext and btnPrev
You currently can't have multiple roundabouts on the same page unless you assign the next and prev button an ID (which is contraproductive when e.g. generating roundabouts from a template through a script / CMS).
Having two roundabouts with .next
and .prev
buttons and e.g. btnNext set to ".next", a click on one of the buttons will trigger the "next" on all roundabouts on the page instead of just the roundabout you wanted to rotate.
A solution would be to allow objects for btnNext and btnPrev so you could set them with a jquery selector based on the current scope / roundabout.
Hello! Same problem here. Any suggestions?