0

今後のプロジェクトでは、parallaxjs 効果を使用します。ご存じのように、スクロール時に位置を変更する複数の css 背景レイヤーを使用します。私がしたいのは、CSSで定義された背景の代わりにdivレイヤーを使用することです。

function Move(){ 
    var pos = $window.scrollTop(); //position of the scrollbar

    //if the first section is in view...
    if($firstBG.hasClass("inview")){
        //call the newPos function and change the background position
        $firstBG.css({'backgroundPosition': newPos(50, windowHeight, pos, 900, 0.3)}); 
    }

background-image css の代わりに div レイヤー (ライトボックスなど) を使用する方法はありますか? 答えてくれてありがとう!

4

0 に答える 0