문제

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')
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top