Tag

scroll-snap

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jan 13, 2021 · Frontend Development

CSS Scroll Snap: A Comprehensive Guide to Creating Smooth Scrollable Containers

This article explains the CSS Scroll Snap feature, covering its purpose, basic setup, key properties such as scroll‑snap‑type, scroll‑snap‑align, scroll‑snap‑stop, scroll‑padding, and scroll‑margin, and demonstrates practical use cases with code examples for building responsive scrollable interfaces.

FrontendWeb Developmentcss
0 likes · 12 min read
CSS Scroll Snap: A Comprehensive Guide to Creating Smooth Scrollable Containers
Yuewen Frontend Team
Yuewen Frontend Team
Nov 16, 2020 · Frontend Development

Build a Lightweight Carousel with CSS Scroll‑Snap and Minimal JavaScript

This article demonstrates how to replace heavy swiper libraries with a slim, pure‑CSS carousel using scroll‑snap‑type, scroll‑snap‑align, and scroll‑behavior, and adds a small JavaScript polyfill for smooth scrolling and automatic slide rotation, complete with npm packaging and compatibility notes.

CarouselFrontendJavaScript
0 likes · 7 min read
Build a Lightweight Carousel with CSS Scroll‑Snap and Minimal JavaScript
360 Tech Engineering
360 Tech Engineering
Sep 30, 2018 · Frontend Development

Understanding CSS Scroll Snap: Concepts, Examples, and Properties

This article explains the CSS Scroll Snap feature introduced in Chrome 69, describing how snapping points work, providing two practical examples—a horizontal photo gallery and a paginated document—while detailing related properties such as scroll‑snap‑type, scroll‑padding, scroll‑margin, and scroll‑snap‑align.

CSS3FrontendWeb Development
0 likes · 9 min read
Understanding CSS Scroll Snap: Concepts, Examples, and Properties