You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the documentation I wrote a small gallery with arrows and dot navigation.
I give active class to current dot and disabled attribute for arrows on beginning and end of gallery:
// add listener for slideshow page changeflipsnap.element.addEventListener('fspointmove',function(){// if pagination exists change active classesif($paginationElement){$paginationElement.filter('.active').removeClass('active');$paginationElement.eq(flipsnap.currentPoint).addClass('active');}// if arrows exists change active classesif($prev){$prev.attr('disabled',!flipsnap.hasPrev());}if($next){$next.attr('disabled',!flipsnap.hasNext());}},false);
Unfortunately the disabled status and active class are not assigned when page is loaded. I have to remember to manually add them.
I was trying to trigger the change with flipsnap.moveToPoint(0), but it doesn't do anything. I could move to 1 and back again to 0, but it would be stupid. flipsnap.refresh() doesn't work either.
The text was updated successfully, but these errors were encountered:
Using the documentation I wrote a small gallery with arrows and dot navigation.
I give
active
class to current dot anddisabled
attribute for arrows on beginning and end of gallery:Unfortunately the
disabled
status andactive
class are not assigned when page is loaded. I have to remember to manually add them.I was trying to trigger the change with
flipsnap.moveToPoint(0)
, but it doesn't do anything. I could move to1
and back again to0
, but it would be stupid.flipsnap.refresh()
doesn't work either.The text was updated successfully, but these errors were encountered: