Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

waypoints

> 编程语言
Open source

Waypoints is a library that makes it easy to execute a function whenever you scroll to an element.

10.3K stars0 likes1 views
WebsiteGitHub

About

Waypoints is a library that makes it easy to execute a function whenever you scroll to an element.

Waypoints

Waypoints is a library that makes it easy to execute a function whenever you scroll to an element.

javascript
var waypoint = new Waypoint({
  element: document.getElementById('thing'),
  handler: function(direction) {
    alert('You have scrolled to a thing')
  }
})

If you're new to Waypoints, check out the Getting Started guide.

Read the full documentation for more details on usage and customization.

Shortcuts

In addition to the normal Waypoints script, extensions exist to make common UI patterns just a little easier to implement:

  • Infinite Scrolling
  • Sticky Elements
  • Inview Detection

Contributing

If you want to report a Waypoints bug or contribute code to the library, please read the Contributing Guidelines. If you need help using Waypoints, please do not open an issue. Instead, ask the question on Stack Overflow and tag it with #jquery-waypoints. Be sure to follow the guidelines for asking a good question.

License

Copyright (c) 2011-2014 Caleb Troughton. Licensed under the MIT license.

Issues· 102 open

View all issuesOpen on GitHub
  • #578

    Work with https://github.com/idiotWu/smooth-scrollbar

    Updated Jul 30, 2024
  • #626

    Update requirejs to 2.3.7

    Updated Jul 25, 2024
  • #602

    Waypoint not working properly when using <a href="#my_anchor">

    Updated Aug 23, 2023
  • #624

    Infinite: parseHTML strips out script tags by default

    Updated Oct 13, 2022
  • #604

    Waypoints fire more than once when I reach and load new content

    Updated Jun 15, 2022
  • #565

    Infinite Scroll | Add Fade in effect

    Updated Jun 14, 2022
  • #621

    Add semicolon

    Updated Nov 24, 2021
  • #590

    Is this project still Active?

    Updated Nov 23, 2021
  • #620

    The page crashes on the IOS mobile (iPhone 12).

    Updated Sep 9, 2021
  • #619

    overrides window.onload event handlers attached using jQuery or window.addEventListener

    Updated Aug 31, 2021

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言