문제

var s = skrollr.init({    
    mobileDeceleration: 1,    
    edgeStrategy: 'set',    
    forceHeight: true,    
    smoothScrolling: true,    
    smoothScrollingDuration: 300,   
    easing: {    
        WTF: Math.random,
        inverted: function(p) {
            return 1-p;
        }
    }
});

When i try to init skrollr it just gives me this error: TypeError: Argument 1 of Window.getComputedStyle is not an object. What could it be?

도움이 되었습니까?

해결책

I was having this same issue and putting the init inside $(document).ready resolved it for me.

$(document).ready(function () {
    var s = skrollr.init();
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top