mercredi 24 août 2016

Work with content wrapped with Scrolloverflow.js + Fullpage.js

I use Fullpage.js together with Scrolloverflow plugin for my template:

$('#fullpage').fullpage({
    scrollOverflow: true,
    afterRender: function() {
        $("nav").on("click", "a", function() {
            ...
        }
    }
});

On the official website they say that I need to use delegation in order to work with content wrapped by the Scrolloverflow plugin. However, it doesn't seem to work in my case, because the click event doesn't work in my example. Any ideas?

Aucun commentaire:

Enregistrer un commentaire