CSS Scroll Snap is a module of CSS that introduces scroll snap positions, which enforce the scroll positions that a scroll container ’s scrollport may end at after a scrolling operation has completed.

注意 : The previous version of this module was called Scroll Snap Points and has been deprecated. CSS Scroll Snap is the current implementation.

参考

CSS Properties on Containers

CSS Properties on Children

指南

规范

规范 状态 注释
CSS Scroll Snap Module Level 1 候选推荐 初始定义

浏览器兼容性

The individual property pages detail the browser compatibility situation for Scroll Snap. Note that at the present time Firefox still implements an old version of the specification. Read the guide to browser compatibility for an overview of how to support both the old and new specification.

元数据

  • 最后修改: