{"id":13418997,"url":"https://github.com/imakewebthings/waypoints","last_synced_at":"2025-05-12T09:24:53.580Z","repository":{"id":1344496,"uuid":"1290701","full_name":"imakewebthings/waypoints","owner":"imakewebthings","description":"Waypoints is a library that makes it easy to execute a function whenever you scroll to an element.","archived":false,"fork":false,"pushed_at":"2022-11-18T05:01:47.000Z","size":1348,"stargazers_count":10366,"open_issues_count":102,"forks_count":1322,"subscribers_count":281,"default_branch":"master","last_synced_at":"2025-05-08T07:02:57.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://imakewebthings.com/waypoints/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imakewebthings.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"licenses.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-25T07:46:22.000Z","updated_at":"2025-05-06T23:00:52.000Z","dependencies_parsed_at":"2022-06-25T17:31:54.039Z","dependency_job_id":null,"html_url":"https://github.com/imakewebthings/waypoints","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imakewebthings%2Fwaypoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imakewebthings%2Fwaypoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imakewebthings%2Fwaypoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imakewebthings%2Fwaypoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imakewebthings","download_url":"https://codeload.github.com/imakewebthings/waypoints/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253187143,"owners_count":21868070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:01:09.925Z","updated_at":"2025-05-11T08:38:25.641Z","avatar_url":"https://github.com/imakewebthings.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Web Development","13. 页面交互","Utilities","Computer Networking and Security","Client-side"],"sub_categories":["C++/C Toolkit","13.9 滚动侦测(ScrollSpy) ###","React Components","13.9 滚动侦测(ScrollSpy)"],"readme":"# Waypoints\r\n\r\nWaypoints is a library that makes it easy to execute a function whenever you scroll to an element. ![Build Status](https://travis-ci.org/imakewebthings/waypoints.svg)\r\n\r\n```js\r\nvar waypoint = new Waypoint({\r\n  element: document.getElementById('thing'),\r\n  handler: function(direction) {\r\n    alert('You have scrolled to a thing')\r\n  }\r\n})\r\n```\r\n\r\nIf you're new to Waypoints, check out the [Getting Started](http://imakewebthings.com/waypoints/guides/getting-started) guide.\r\n\r\n[Read the full documentation](http://imakewebthings.com/waypoints/api/waypoint) for more details on usage and customization.\r\n\r\n## Shortcuts\r\n\r\nIn addition to the normal Waypoints script, extensions exist to make common UI patterns just a little easier to implement:\r\n\r\n- [Infinite Scrolling](http://imakewebthings.com/waypoints/shortcuts/infinite-scroll)\r\n- [Sticky Elements](http://imakewebthings.com/waypoints/shortcuts/sticky-elements)\r\n- [Inview Detection](http://imakewebthings.com/waypoints/shortcuts/inview)\r\n\r\n\r\n## Contributing\r\n\r\nIf you want to report a Waypoints bug or contribute code to the library, please read the [Contributing Guidelines](https://github.com/imakewebthings/waypoints/blob/master/CONTRIBUTING.md). If you need help *using* Waypoints, please do not open an issue. Instead, ask the question on [Stack Overflow](http://stackoverflow.com) and tag it with \u003ccode\u003e#jquery-waypoints\u003c/code\u003e. Be sure to follow the guidelines for [asking a good question](http://stackoverflow.com/help/how-to-ask).\r\n\r\n## License\r\n\r\nCopyright (c) 2011-2014 Caleb Troughton. Licensed under the [MIT license](https://github.com/imakewebthings/waypoints/blob/master/licenses.txt).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimakewebthings%2Fwaypoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimakewebthings%2Fwaypoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimakewebthings%2Fwaypoints/lists"}