Scroll Snapping

Posted in: Newspaper
Post count: 10

Hi,

I wanna use the scroll snapping feature on my website.

website link

I wanna use this feature on the slider and I wanna scroll down to the start of the website logo.

I found out that I have to use the following code:


body {
scroll-snap-type: y mandatory;
}
.vc_row tdi_46.wpb_row.td-pb-row {
scroll-snap-align: start;
}

But I don’t know how to find the child section of the body. Do I need to create a child section under the body? If yes, how can I create it? If not, how do I need to do it?

Thanks for the help in advance.

  • This topic was modified 4 years by nockeeee.
  • This topic was modified 4 years by nockeeee.
  • This topic was modified 4 years by nockeeee.
  • This topic was modified 4 years by nockeeee.
Post count: 21065

Hello @nockeeee!

Unfortunately, there is no effect on our theme like the one you describe.
Check this article because it could help you: https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.