{"id":22487093,"url":"https://github.com/iclanzan/slinky","last_synced_at":"2026-01-07T06:32:23.175Z","repository":{"id":13645376,"uuid":"16338820","full_name":"iclanzan/slinky","owner":"iclanzan","description":"Scrolling navigation component for web apps","archived":false,"fork":false,"pushed_at":"2024-06-21T21:28:50.000Z","size":26,"stargazers_count":199,"open_issues_count":6,"forks_count":34,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-12-06T17:16:26.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://slinky.iclanzan.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iclanzan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-29T08:06:41.000Z","updated_at":"2024-06-21T21:28:53.000Z","dependencies_parsed_at":"2022-09-13T12:42:43.458Z","dependency_job_id":null,"html_url":"https://github.com/iclanzan/slinky","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/iclanzan/slinky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iclanzan%2Fslinky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iclanzan%2Fslinky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iclanzan%2Fslinky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iclanzan%2Fslinky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iclanzan","download_url":"https://codeload.github.com/iclanzan/slinky/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iclanzan%2Fslinky/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268441250,"owners_count":24250969,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-06T17:15:52.682Z","updated_at":"2026-01-07T06:32:23.144Z","avatar_url":"https://github.com/iclanzan.png","language":"JavaScript","readme":"# Slinky.js #\n\nCreate beautiful scrolling driven navigation lists with stacking headers that remain visible at all times. Scroll around on the [plugin homepage](https://iclanzan.github.io/slinky/) to see it in action.\n\n_Slinky is currently implemented as a jQuery plugin but if there is enough demand I might write a standalone version too._\n\n## Getting Started ##\n\nDownload the [production version][min] or the [development version][max] and include it after jQuery. Then just call `$('.nav').slinky()` for example to enable Slinky on all elements with a `nav` class.\n\n[min]: https://raw.github.com/iclanzan/slinky/master/dist/jquery.slinky.min.js\n[max]: https://raw.github.com/iclanzan/slinky/master/dist/jquery.slinky.js\n\n### Example ###\n\nA minimal HTML structure for Slinky to work with can look something like this:\n\n```html\n\u003cdiv class=\"nav\"\u003e\n  \u003cdiv class=\"scroller\"\u003e\n    \u003csection\u003e\n      \u003cheader\u003eFirst Header\u003c/header\u003e\n      \u003cul\u003e\n        \u003cli\u003eitem\u003c/li\u003e\n        \u003cli\u003eitem\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/section\u003e\n    \u003csection\u003e\n      \u003cheader\u003eSecond Header\u003c/header\u003e\n      \u003cp\u003eSome content\u003c/p\u003e\n    \u003c/section\u003e\n    \u003c!-- more sections here --\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nAnd the accompanying CSS:\n\n```CSS\n.nav {\n  position: relative;\n  height: 400px;\n  overflow: hidden;\n}\n\n.scroller {\n  height: 100%;\n  overflow: auto;\n}\n```\n\nSlinky doesn’t make any assumptions about the tags and classes you are using but it does expect to find an element with hidden overflow wrapped around a scrollable element. Inside of it content should be split into sections. The first child of each section is considered to be the header.\n\n## Credits ##\n\nThanks to [@callmevlad](https://twitter.com/callmevlad) for the idea!\n\n## Release History ##\n\n+ **v0.1.1 (2014-02-06)** Fixed rendering glitches on high density screens.\n+ **v0.1.0 (2014-01-31)** Initial version\n","funding_links":[],"categories":["JavaScript","13. 页面交互"],"sub_categories":["13.15 固定元素(Sticky) ###","13.15 固定元素(Sticky)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficlanzan%2Fslinky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficlanzan%2Fslinky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficlanzan%2Fslinky/lists"}