alvarotrigo / fullPage.js

fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple
http://alvarotrigo.com/fullPage/
GNU General Public License v3.0
35.28k stars 7.3k forks source link

Scroll to the bottom #2911

Closed gaz12 closed 7 years ago

gaz12 commented 7 years ago

Hi! I have some site http://adobeg.bget.ru/bank/ I need to scroll to the second slide. The second slide has a height bigger than the screen height and has a scroll. I need to move from the first to the second slide was at the bottom of the second slide. Slide now https://snag.gy/nUh0MR.jpg What I need https://snag.gy/fknSFT.jpg

alvarotrigo commented 7 years ago

Not something fullPage.js provides. But you can probably achieve that with javascript or looking into the iScroll docs.

gaz12 commented 7 years ago

Already looked. var myScroll = new IScroll('.wrapper'); option myScroll.scrollTo(0, -100) must solve the problem, but I don`t know what var set instead of myScroll becase isrcoll plugin initialized inside the fullpagejs.

alvarotrigo commented 7 years ago

Look into my answer here where you'll be able to learn how to extract the iScroll instance from each section.

gaz12 commented 7 years ago

Thank you very much!