awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

7 个仓库

Awesome GitHub RepositoriesScroll Lifecycle Callbacks

User-defined functions executed at the start and end of a scroll animation for custom side effects.

Distinct from Custom Scroll Triggers: Distinct from Custom Scroll Triggers: fires callbacks at animation lifecycle points rather than detecting scroll position for data fetching.

Explore 7 awesome GitHub repositories matching user interface & experience · Scroll Lifecycle Callbacks. Refine with filters or upvote what's useful.

Awesome Scroll Lifecycle Callbacks GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • tholman/elevator.jstholman 的头像

    tholman/elevator.js

    6,641在 GitHub 上查看↗

    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

    Provides callback hooks that fire at the start and end of scroll animations for custom integration.

    JavaScript
    在 GitHub 上查看↗6,641
  • russellsamora/scrollamarussellsamora 的头像

    russellsamora/scrollama

    5,982在 GitHub 上查看↗

    Scrollama is a JavaScript library for scroll-driven storytelling that uses the browser's native IntersectionObserver API to trigger step-based callbacks and animations as the user scrolls through a page. It pins graphic elements using CSS sticky positioning while scrolling through associated text steps, enabling side-by-side narrative experiences without JavaScript-driven layout calculations. The library provides a configurable offset threshold system that accepts a single global offset or per-element data-attribute offsets to define the viewport position that triggers step events. It reports

    Fires enter and exit callbacks when step elements cross configurable viewport thresholds.

    HTML
    在 GitHub 上查看↗5,982
  • cferdinandi/smooth-scrollcferdinandi 的头像

    cferdinandi/smooth-scroll

    5,444在 GitHub 上查看↗

    This JavaScript smooth scrolling library is a frontend utility and viewport motion controller designed to animate transitions to anchor links. It intercepts standard link clicks to replace instant jumps with fluid movement toward target elements. The library provides configurable motion easing patterns and speed controls to manage acceleration and deceleration. It includes a mechanism to cancel active animations immediately and supports programmatic scroll triggering via direct function calls. The tool handles positioning offsets to prevent target content from being hidden behind fixed heade

    Provides user-defined callbacks that execute at the start and end of smooth scrolling animations.

    JavaScriptanchor-linksanimate-scrollingjavascript
    在 GitHub 上查看↗5,444
  • civiccc/react-waypointciviccc 的头像

    civiccc/react-waypoint

    4,046在 GitHub 上查看↗

    react-waypoint 是一个 React 组件和视口跟踪工具,根据 DOM 节点在可滚动区域内的可见性执行函数。它监控元素何时进入或离开浏览器视口或指定的滚动容器以触发回调。 该项目支持实现无限滚动、资源懒加载和滚动触发动画。它允许使用偏移量进行自定义滚动容器定义和视口边界配置,以确定事件触发的精确时机。 该工具为垂直和水平滚动提供元素位置跟踪和可见性监控。它包括触发灵敏度控制和事件节流,以管理快速滚动期间的回调执行。

    Fires user-defined callbacks when elements cross configurable viewport thresholds during vertical or horizontal scrolling.

    JavaScript
    在 GitHub 上查看↗4,046
  • terwanerik/scrolltriggerterwanerik 的头像

    terwanerik/ScrollTrigger

    3,964在 GitHub 上查看↗

    ScrollTrigger 是一个 JavaScript 库和 DOM 滚动事件管理器,旨在当元素进入或离开浏览器视口时执行回调并切换 CSS 类。它作为 Intersection Observer API 的高级接口,以及一个用于根据元素相对于视口的位置启动视觉转换和异步任务的系统。 该工具允许使用像素或百分比偏移量定义精确的触发点,以精确控制事件触发的时间。它通过跟踪可见性阈值来管理滚动驱动的视觉动画和懒加载实现。 该库提供了监控滚动活动的功能,例如跟踪滚动何时开始、停止或改变方向。它进一步支持视口事件触发,以便在元素跨越特定坐标时运行自定义函数或 Promise。

    Runs custom functions or promises when elements enter, leave, or remain visible within the browser viewport.

    JavaScriptanimationcsshtml-element
    在 GitHub 上查看↗3,964
  • electerious/basicscrollelecterious 的头像

    electerious/basicScroll

    3,607在 GitHub 上查看↗

    BasicScroll is a standalone scroll-driven animation library that updates CSS custom properties, element styles, and CSS properties dynamically based on absolute or relative viewport scroll positions. It functions as an animation engine designed to build custom parallax scrolling experiences and fluid visual effects on both mobile and desktop viewports. The library supports custom scroll range definitions anchored directly to specific document elements, alongside callback executions that trigger user-defined functions with live progress data and state percentages as the viewport enters or leav

    Triggers user-defined functions with live progress percentages as the viewport crosses boundaries.

    JavaScript
    在 GitHub 上查看↗3,607
  • malte-wessel/react-custom-scrollbarsmalte-wessel 的头像

    malte-wessel/react-custom-scrollbars

    3,217在 GitHub 上查看↗

    React custom scrollbars is a user interface component built for React applications that replaces native browser scrollbars with custom-styled tracks and thumbs. It maintains consistent visual appearance across different platforms and browsers while generating matching markup on both server and client environments to support server-side rendering without layout shift. The library provides comprehensive styling options by overriding default track, thumb, and view elements with custom components, CSS classes, or inline styles. It handles layout adjustments by resizing container dimensions dynami

    The scroll component library triggers callback functions during scrolling actions so applications can respond smoothly to user movement.

    JavaScriptcustomizablereactscrollbars
    在 GitHub 上查看↗3,217
  1. Home
  2. User Interface & Experience
  3. Scroll Containers
  4. Custom Scroll Triggers
  5. Scroll Lifecycle Callbacks

探索子标签

  • Step Enter-Exit CallbacksFires user-defined callbacks when step elements enter or exit a configurable viewport threshold during scrolling. **Distinct from Scroll Lifecycle Callbacks:** Distinct from Scroll Lifecycle Callbacks: triggers on viewport threshold crossing for step elements, not at animation lifecycle start/end points.
  • Viewport Intersection CallbacksCallbacks that fire specifically when elements enter or leave the visible viewport area. **Distinct from Scroll Lifecycle Callbacks:** Unlike general scroll lifecycle callbacks, these trigger specifically on viewport entry and exit thresholds.