简体   繁体   中英

Page Scrolling left to right

i want to create a webpage like http://seller.flipkart.com . I want to scroll my page first from up to down and then left to right using scrolling button only and background drawing. Can you tell me how can i do this and which languages should i learn?

     $('html, body').animate({scrollLeft: -$(sectionName).offset().left}, "slow");
     $('html, body').animate({scrollTop: $(sectionName).offset().top}, "slow");

The effect you are talking about is known as parallax effect. Use this skollr plug-in (demo link : http://prinzhorn.github.io/skrollr/ )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM