javascript - Free scrolling and parallax issue (jQuery Scroll Path + Parallax) -


In a project where I want to create something similar to the famous parallax-driven Mario Cart v. Experience site, which comes with horizontal And vertical scroll (if you have not seen it, then it is :)

For scrolling effect, I caught the JQuery scroll path plugin (website here :), and it is free to suit my needs Scrolling

The problem occurs when I get the parallax effect Some plug-ins to various'm trying to incorporate these. I tried several plugins (including Stellar.js, jInvertScroll, Parallax.js, Parallax-JS), but none of them is working properly. I think there is some kind of relationship between the custom scroll with the scrolling path plugin and the pulldown plugin is required to work to navigate the navigator.

I found a similar situation of searching for Google (i.e., implementing the scroll path with some parallax plugin) but I did not find any in my current situation, and it seems that the scroll path plugin Not created anymore.

PS: Sorry for the grammar mistakes, I am still in the process of learning English.

2 Plugins To work together, you should understand how they work. The parallax effect is achieved with some layers that move at different speeds - the fastest run at your closest location, the slowest moves in the farest are based on the scroll-top calculation of most of the Pendulum effects plugins - That is, the layers multiply by the delta-value (which differ on the basis of the layer's position) and the current scroll has gone on the offset basis.

In your case, you will see scrolling events in the ScrollPath for Parallax Plugin in the jQuery Scrollpath Scroll Event (Powered by Pendulum Plugin) in the function scrollToStep (See line 490 in jquery.scrollpath.js). To simplify the calculation, you can use the 'top' value applied to scrollbar * some delta (you should choose delta value yourself). Then in the Pendulum plugin you can modify the event handler which applies parallax effects to generate in the scrollpath plugin from scroll / mousewheel .

To connect 2 plugins together you should modify your code which means that you will not be able to easily update these plugins to the new version. If you update the plugins in the future, you should comment on all your changes to re-apply them.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -