1 个仓库
Mechanisms that use DOM data attributes to automatically configure and initialize component logic.
Distinct from Data Attribute Mapping: Distinct from Data Attribute Mapping: focuses on the initialization of logic rather than just extracting text for other operations.
Explore 1 awesome GitHub repository matching web development · Initialization Mappings. Refine with filters or upvote what's useful.
Scroller 是一个 JavaScript 库,用于在 HTML 元素和 Canvas 渲染表面上实现平移和缩放交互。它充当视口状态管理器和动能滚动引擎,将触摸和鼠标指针事件转换为用于流畅导航的缩放偏移量。 该库具有一个模拟减速和边缘回弹的动能运动系统。它包括用于下拉刷新触发器的特定机制,并支持点相对缩放,以保持焦点中心位于用户的光标上。 该系统提供了一系列移动控制,包括轴锁定拖拽行为和网格对齐。它通过可配置的最小和最大缩放限制来管理视口比例,并独立于渲染层计算坐标转换。 与 DOM 的集成通过用于自动初始化滚动和缩放逻辑的数据属性来处理。
Allows automatic initialization of scrolling and zooming logic via HTML data attributes.