9 个仓库
Logic that monitors scroll events on specific DOM containers to control UI element states.
Distinct from Scroll State Controllers: Focuses on passive monitoring of scroll events to trigger UI changes, whereas Scroll State Controllers focus on active programmatic manipulation.
Explore 9 awesome GitHub repositories matching user interface & experience · Scroll Event Controllers. Refine with filters or upvote what's useful.
This project is a cross-platform mobile carousel component for creating swipeable image and content sliders. It functions as a virtualized list component that maintains performance by removing off-screen elements and utilizes a native-driver animation library to map scroll offsets to style properties on the native thread for lag-free transitions. The library provides a parallax image gallery capable of shifting images relative to scroll progress to create a sense of depth. It also features a layout system that supports right-to-left orientations for languages such as Arabic and Hebrew. Capab
Monitors scroll events to synchronize the active item index and trigger pagination callbacks.
elevator.js is a lightweight JavaScript library that adds a playful, elevator-themed scroll-to-top button to a webpage. When clicked, it smoothly animates the page back to the top while playing a looping elevator music track in the background, masking the transition and adding a whimsical touch to the user experience. The library goes beyond a simple scroll-to-top button by offering configurable scroll duration, the ability to scroll to any specified DOM element with optional vertical padding, and callback hooks that fire user-defined functions at the start and end of the animation. This allo
Executes custom functions when the scroll starts and when it finishes.
react-waypoint 是一个 React 组件和视口跟踪工具,根据 DOM 节点在可滚动区域内的可见性执行函数。它监控元素何时进入或离开浏览器视口或指定的滚动容器以触发回调。 该项目支持实现无限滚动、资源懒加载和滚动触发动画。它允许使用偏移量进行自定义滚动容器定义和视口边界配置,以确定事件触发的精确时机。 该工具为垂直和水平滚动提供元素位置跟踪和可见性监控。它包括触发灵敏度控制和事件节流,以管理快速滚动期间的回调执行。
Provides custom offsets and throttling handlers to precisely control when visibility callbacks are executed during scrolling.
react-waypoint 是一组 React 组件和包装器,旨在当特定 DOM 元素进入或离开可见屏幕区域时执行回调。它作为一个视口可见性跟踪器,监控元素何时跨越预定义的空间边界。 该项目提供了一个滚动触发组件和事件包装器,允许进行自定义偏移配置以考虑固定的 UI 元素。这些工具可以配置为使用特定的 DOM 节点或全局窗口作为可见性计算的滚动祖先。 该库涵盖了多种实现模式,包括无限滚动、内容懒加载和滚动触发动画。它通过监控元素可见性并根据元素的边界框与当前视口的交集触发函数来管理这些操作。
Provides React wrappers that trigger actions based on element position relative to the window during scrolling.
ScrollTrigger 是一个 JavaScript 库和 DOM 滚动事件管理器,旨在当元素进入或离开浏览器视口时执行回调并切换 CSS 类。它作为 Intersection Observer API 的高级接口,以及一个用于根据元素相对于视口的位置启动视觉转换和异步任务的系统。 该工具允许使用像素或百分比偏移量定义精确的触发点,以精确控制事件触发的时间。它通过跟踪可见性阈值来管理滚动驱动的视觉动画和懒加载实现。 该库提供了监控滚动活动的功能,例如跟踪滚动何时开始、停止或改变方向。它进一步支持视口事件触发,以便在元素跨越特定坐标时运行自定义函数或 Promise。
Provides logic to monitor scroll events and direction changes to control UI element states.
FloatingActionButton is a scroll-driven UI controller and mobile-first interface element. It provides a circular button that floats above content and toggles its visibility based on scroll direction to maximize available screen space. The component functions as a CSS-animated UI element, utilizing stylesheet transitions to handle the visual sliding and fading of the interface controls. It is designed for mobile interfaces to provide quick access to primary actions without obscuring page content. The system manages visibility by monitoring scroll events on a designated DOM container and detec
Mechanically controls the visibility of UI elements by monitoring scroll events on a designated container.
This project is a frontend component designed to manage dynamic content loading and scroll-based interactions within web applications. It provides a reusable interface for handling data injection as users navigate through scrollable areas, ensuring that content updates occur automatically based on scroll position or manual user triggers. The component distinguishes itself by supporting both standard downward infinite scrolling and inverse scrolling, which allows for the natural expansion of content history in chat-like interfaces. It offers developers full control over the visual presentation
Tracks scroll offsets and movement patterns using hooks to build custom interactions.
This library provides a set of React components designed to improve initial page load performance by deferring the rendering of images and other elements until they enter the browser viewport. By managing content visibility and asset delivery, it reduces unnecessary network data usage and accelerates page rendering. The project distinguishes itself through its use of the browser-native intersection observer to track element visibility, which eliminates the need for manual scroll calculations. It further optimizes performance by consolidating event listeners into a single parent component, min
Manages scroll events by consolidating listeners to reduce processing overhead for dynamic elements.
React Parallax is a React animation component library that creates multi-speed scrolling background depth effects. It computes relative scroll positions within viewports to translate raw page offsets into normalized animation progress values, applying hardware-accelerated translation and scaling styles to DOM nodes for smooth visual movement. The library supports rendering background images and arbitrary visual elements that shift positions at different speeds relative to foreground content. It provides dynamic Gaussian blur filter transitions that interpolate based on current scroll velocity
Wraps children in scroll-position tracking components that expose raw percentages for custom visual transformations.