2 个仓库
JavaScript libraries designed to execute callbacks and toggle styles based on element visibility in the viewport.
Distinct from Step Enter-Exit Callbacks: None of the candidates provide a high-level identity for a general-purpose scroll trigger library.
Explore 2 awesome GitHub repositories matching web development · Scroll Trigger Libraries. Refine with filters or upvote what's useful.
ScrollTrigger 是一个 JavaScript 库和 DOM 滚动事件管理器,旨在当元素进入或离开浏览器视口时执行回调并切换 CSS 类。它作为 Intersection Observer API 的高级接口,以及一个用于根据元素相对于视口的位置启动视觉转换和异步任务的系统。 该工具允许使用像素或百分比偏移量定义精确的触发点,以精确控制事件触发的时间。它通过跟踪可见性阈值来管理滚动驱动的视觉动画和懒加载实现。 该库提供了监控滚动活动的功能,例如跟踪滚动何时开始、停止或改变方向。它进一步支持视口事件触发,以便在元素跨越特定坐标时运行自定义函数或 Promise。
Provides a complete JavaScript toolset for executing callbacks and toggling CSS classes during viewport intersection.
Sal is a lightweight vanilla JavaScript library designed to trigger CSS animations and execute custom logic as elements enter the browser viewport. It serves as a programmatic wrapper for the Intersection Observer API, providing a viewport trigger system to handle visibility thresholds and scroll-based animations. The library operates as a dependency-free frontend tool that manages animations through a class-based trigger mechanism and the injection of CSS custom properties. It includes a system for tracking dynamic content, allowing the observer to be updated to include new elements injected
A lightweight vanilla JavaScript library that triggers CSS animations upon viewport entry.