Saltar navegación

[Resuelto] Scroll Snap

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

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por randallH-3 4 years, 5 months ago.

Autor
Mensajes
#2246527

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

#2246665

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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: enlace oculto

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!