Navigation überspringen

[Gelöst] Scroll Snap

This support ticket is created vor 4 years, 5 months. 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.

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von randallH-3 vor 4 years, 5 months.

Author
Artikel
#2246527

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

#2246665

Nigel
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01:00)

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

To start, you can learn about scroll snapping with CSS here: versteckter 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!