dimanche 17 juillet 2016

How to detect slide direction in Slick Carousel onBeforeChange?


How can I know what direction the carousel are going on the event onBeforeChange. right or left?

    $('.foo').slick
        infinite: false
        onBeforeChange: (e) ->
            if right
                do_this()
            if left
                do_that()

Slick Carousel


Aucun commentaire:

Enregistrer un commentaire