Skip Navigation

[Resolved] Scroll Snap

This support ticket is created 3 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by randallH-3 3 years ago.

Author
Posts
#2246527

How to create snap div during scroll in blocks/views?

#2246665

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You'll need to add some custom CSS to achieve this.

To start, you can learn about scroll snapping with CSS here: hidden link

You'll need to target the wrapper for the View output so that you can apply the scroll-snap-type property, and then the individual loop items that you want to snap to that you can apply the scroll-snap-start property to.

In legacy Views you can edit the markup in the Loop Editor directly to add classes where required, or with Blocks you can add class names in the advanced section to the relevant blocks.

Then target those with the required CSS.

#2248463

My issue is resolved now. Thank you!