T
T
thetonygreen2019-03-27 21:48:14
JavaScript
thetonygreen, 2019-03-27 21:48:14

How to scroll to the top from the main screen?

Good afternoon!

How is it possible to implement a scroll, like here - https://cisternerne.dk/en/ - after the loader, if you start scrolling from the main screen to the top, then several more screens with content appear there.

Are there any libraries to implement this? A cursory googling didn't turn up any results.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-03-27
@thetonygreen

cool effect, I think they themselves wrote
on the scroll event they move div.above down through transform:translate(), and div.main is shifted down by 100% height, overflow:hidden for everything so that there are no scrollbars
and also, if you know how to Vue (I I don’t know how), then you can dig deeper into the sources, and maybe even find a ready-made code
5c9bd73563145948118179.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question