{"id":19623808,"url":"https://github.com/appleple/scroll-hint","last_synced_at":"2025-05-16T04:05:58.106Z","repository":{"id":37773830,"uuid":"131692854","full_name":"appleple/scroll-hint","owner":"appleple","description":"A JS library to suggest that the elements are scrollable horizontally, with the pointer icon.","archived":false,"fork":false,"pushed_at":"2025-02-26T00:56:40.000Z","size":984,"stargazers_count":346,"open_issues_count":15,"forks_count":35,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-08T14:11:10.947Z","etag":null,"topics":["es6","js","npm","ui"],"latest_commit_sha":null,"homepage":"https://appleple.github.io/scroll-hint/","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/appleple.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-01T08:45:41.000Z","updated_at":"2025-03-20T06:32:49.000Z","dependencies_parsed_at":"2024-11-11T11:37:53.891Z","dependency_job_id":"82ab50c4-9a8d-4081-a280-8c848a302e26","html_url":"https://github.com/appleple/scroll-hint","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fscroll-hint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fscroll-hint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fscroll-hint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleple%2Fscroll-hint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleple","download_url":"https://codeload.github.com/appleple/scroll-hint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464895,"owners_count":22075570,"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":["es6","js","npm","ui"],"created_at":"2024-11-11T11:35:33.917Z","updated_at":"2025-05-16T04:05:58.090Z","avatar_url":"https://github.com/appleple.png","language":"JavaScript","funding_links":[],"categories":["前端常用"],"sub_categories":[],"readme":"# ScrollHint\n\nSuggests that the elements are scrollable horizontally, with the `pointer icon`.\n\n\u003cimg src=\"./assets/demo.gif\"\u003e\n\n## Installation\n\n### via npm\n\n```sh\nnpm install scroll-hint --save\n```\n\n### via yarn\n\n```sh\nyarn add scroll-hint\n```\n\n### via cdn\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/scroll-hint@latest/css/scroll-hint.css\"\u003e\n\u003cscript src=\"https://unpkg.com/scroll-hint@latest/js/scroll-hint.js\"\u003e\u003c/script\u003e\n```\n\n\n## Usage\n\nimport the js with babel and Browserify/Webpack\n\n```js\nimport ScrollHint from 'scroll-hint';\nnew ScrollHint('.js-scrollable');\n```\n\n## Option\n\n\u003ctable class=\"table-\"\u003e\n  \u003ctr\u003e\n    \u003cth style=\"text-align:left;\"\u003eName\u003c/th\u003e\n    \u003cth style=\"text-align:left;\"\u003eDefault\u003c/th\u003e\n    \u003cth style=\"text-align:left;\"\u003eDescription\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003esuggestClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eis-active\u003c/td\u003e\n    \u003ctd\u003eClassname to be added when the element is scrolled-in\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollableClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eis-scrollable\u003c/td\u003e\n    \u003ctd\u003eClassname to be added when the element is scrollable\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollableRightClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eis-right-scrollable\u003c/td\u003e\n    \u003ctd\u003eClassname to be added when the element is right-scrollable\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollableLeftClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eis-left-scrollable\u003c/td\u003e\n    \u003ctd\u003eClassname to be added when the element is left-scrollable\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollHintClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003escroll-hint\u003c/td\u003e\n    \u003ctd\u003eClassname to be added to the element\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollHintShadowWrapClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003escroll-hint-shadow-wrap\u003c/td\u003e\n    \u003ctd\u003eClass name added to the wrapper element for shadow effects\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollHintIconClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003escroll-hint-icon\u003c/td\u003e\n    \u003ctd\u003eClassname to be added to the icon\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollHintIconAppendClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003escroll-hint-icon-white\u003c/td\u003e\n    \u003ctd\u003eAnother classname to be added to the element's icon\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollHintIconWrapClass\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003escroll-hint-icon-wrap\u003c/td\u003e\n    \u003ctd\u003eClassname to be added to the icon's wrapper\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollHintText\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003escroll-hint-text\u003c/td\u003e\n    \u003ctd\u003eClassname to be added to the text\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eremainingTime\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e-1\u003c/td\u003e\n    \u003ctd\u003eWhen to hide scroll-hint icon (ms)\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escrollHintBorderWidth\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e10\u003c/td\u003e\n    \u003ctd\u003eShadowbox border width of the element\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eenableOverflowScrolling\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003etrue\u003c/td\u003e\n    \u003ctd\u003eWhen using iOS and the value is true,\u003cbr\u003e\n          -webkit-overflow-scrolling property will be added to the element\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003esuggestiveShadow\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003efalse\u003c/td\u003e\n    \u003ctd\u003eShow suggestive shadow, when the element is scrollable\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eapplyToParents\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003efalse\u003c/td\u003e\n    \u003ctd\u003eApply JavaScript to the parent element\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eoffset\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e0\u003c/td\u003e\n    \u003ctd\u003eYou can change criteria for scrollable.\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003ei18n.scrollable\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003escrollable\u003c/td\u003e\n    \u003ctd\u003eYou can change the scrollable text from here\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fscroll-hint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleple%2Fscroll-hint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleple%2Fscroll-hint/lists"}