{"id":19922216,"url":"https://github.com/sutara79/jquery.simple-scroll-follow","last_synced_at":"2025-05-03T07:30:36.077Z","repository":{"id":18029139,"uuid":"21064962","full_name":"sutara79/jquery.simple-scroll-follow","owner":"sutara79","description":"jQuery plugin to move the element according to the scrolling window.","archived":false,"fork":false,"pushed_at":"2018-08-12T06:55:00.000Z","size":824,"stargazers_count":36,"open_issues_count":2,"forks_count":14,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-07T12:49:36.662Z","etag":null,"topics":["jquery","jquery-plugin"],"latest_commit_sha":null,"homepage":"https://sutara79.github.io/jquery.simple-scroll-follow/","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/sutara79.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-21T09:27:41.000Z","updated_at":"2024-04-27T13:48:15.000Z","dependencies_parsed_at":"2022-09-11T18:51:03.558Z","dependency_job_id":null,"html_url":"https://github.com/sutara79/jquery.simple-scroll-follow","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.simple-scroll-follow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.simple-scroll-follow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.simple-scroll-follow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sutara79%2Fjquery.simple-scroll-follow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sutara79","download_url":"https://codeload.github.com/sutara79/jquery.simple-scroll-follow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252156719,"owners_count":21703332,"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":["jquery","jquery-plugin"],"created_at":"2024-11-12T22:10:01.277Z","updated_at":"2025-05-03T07:30:35.497Z","avatar_url":"https://github.com/sutara79.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery.simple-scroll-follow\n\n[![npm version](https://img.shields.io/npm/v/jquery.simple-scroll-follow.svg)](https://www.npmjs.com/package/jquery.simple-scroll-follow)\n[![Build Status](https://travis-ci.org/sutara79/jquery.simple-scroll-follow.svg?branch=master)](https://travis-ci.org/sutara79/jquery.simple-scroll-follow)\n\njQuery plugin to move the element according to the scrolling window.\n\n![Sample image](sample/image.png)\n\n\n## Demo\nhttps://sutara79.github.io/jquery.simple-scroll-follow/\n\n\n## Install\n- [GitHub](https://github.com/sutara79/jquery.simple-scroll-follow): Clone or download.\n- [npm](https://www.npmjs.com/package/jquery.simple-scroll-follow): `npm i jquery.simple-scroll-follow`\n- CDN ([jsDelivr](https://github.com/jsdelivr/jsdelivr#usage)):\n    - jquery.simple-scroll-follow.min.js: [v3.1.2](https://cdn.jsdelivr.net/npm/jquery.simple-scroll-follow@3.1.2/dist/jquery.simple-scroll-follow.min.js)\n\n\n## Usage\n###### HTML\n```html\n\u003cdiv id=\"foo\"\u003eElement to follow\u003c/div\u003e\n\n\u003cscript src=\"https://code.jquery.com/jquery-3.3.1.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"jquery.simple-scroll-follow.min.js\"\u003e\u003c/script\u003e\n```\n\n###### CSS\n```css\nbody {\n  background: url(null) fixed; /* for Google Chrome */\n}\n\n#foo {\n  position: absolute;\n}\n```\n\n###### JavaScript\n```javascript\n$('#foo').simpleScrollFollow();\n```\n\n\n## Option\n|name|type|default|description|\n|--|--|--|--|\n|[limit_elem](http://sutara79.github.io/jquery.simple-scroll-follow/#limit_elem)|Object, string|`$('body')`|An element that indicates lower limit to scroll|\n|[min_width](http://sutara79.github.io/jquery.simple-scroll-follow/#min_width)|number|`0`|Minimum window width to enable this plugin|\n|[enabled](http://sutara79.github.io/jquery.simple-scroll-follow/#enabled)|boolean|`true`|Enable scroll or not|\n|[upper_side](http://sutara79.github.io/jquery.simple-scroll-follow/#fixed-elem)|string|`null`|An fixed element that indicates upper limit to scroll|\n|[lower_side](http://sutara79.github.io/jquery.simple-scroll-follow/#fixed-elem)|string|`null`|An fixed element that indicates lower limit to scroll|\n\n\n## Public Method\n(since v3.0.0)\n\nFor the details, see [documentation](http://localhost/gh-pages/jq-plugin/jquery.simple-scroll-follow/#public-method).\n\n### .setEnabled()\n##### Parameter\n\n|No.|type|default|description|\n|--|--|--|--|\n|1|boolean|`true`|`true`: this plugin resumes.\u003cbr\u003e`false`: this plugin stops.|\n\n\n## License\n[MIT](https://www.opensource.org/licenses/mit-license.php)\n\n\n## Author\n[Yuusaku Miyazaki](http://sutara79.hatenablog.com/entry/2014/06/21/185709)\n( \u003ctoumin.m7@gmail.com\u003e )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsutara79%2Fjquery.simple-scroll-follow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsutara79%2Fjquery.simple-scroll-follow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsutara79%2Fjquery.simple-scroll-follow/lists"}