Jquery Parallax Scrolling effect - Multi directional

前端 未结 5 1624
余生分开走
余生分开走 2020-12-02 08:19

I need to build a multi-directional JQuery parallax page for a client - they basically want it to work in a similar way to this - https://victoriabeckham.landrover.com/INT

5条回答
  •  旧巷少年郎
    2020-12-02 08:34

    I threw something together is jsfiddle for you.

    http://jsfiddle.net/9R4hZ/40/

    The script initializes the start positions of all of the objects first. Then handlers are set up for arrow key and mouse wheel. After that is the meat of the algorithm in the parallaxScroll function.

    It uses the ARROWS or MOUSEWHEEL for scrolling.

    There are from [left, right, top, bottom] transitions.

    The HTML and CSS are really simple.

    The JS/jQuery that runs it is self explanatory.

    It's an interesting effect, that seems to be geared for artsy type sites.

提交回复
热议问题