Question

I'm trying to convert my current project from jQuery to zepto and I'm having trouble with even basic things such as:

$(window).load(function () {
    // Animate loader off screen
        $("#loading-overlay").delay(2000).fadeOut(1000, function () {
        // Animation complete.
    });
});

As far as I got. Do I still just use $(window).load?

$('#loading-overlay').animate({
}, 2000, 'ease-out')
Was it helpful?

Solution

Last version of Zepto expelled the fx/animations from the core. Are you sure you have included the fx plugin?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top