{"id":18600310,"url":"https://github.com/alekseypleshkov/vue-scroll-show","last_synced_at":"2025-04-10T18:31:22.951Z","repository":{"id":26883987,"uuid":"111662925","full_name":"AlekseyPleshkov/vue-scroll-show","owner":"AlekseyPleshkov","description":"Showing the element if the user reached it after scroll","archived":false,"fork":false,"pushed_at":"2022-12-03T15:57:54.000Z","size":1168,"stargazers_count":10,"open_issues_count":16,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-16T01:03:40.197Z","etag":null,"topics":["vue","vue-directive","vue-plugin","vue-scroll","vuejs2"],"latest_commit_sha":null,"homepage":"","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/AlekseyPleshkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-11-22T09:24:34.000Z","updated_at":"2022-01-05T03:11:56.000Z","dependencies_parsed_at":"2022-07-27T09:02:36.046Z","dependency_job_id":null,"html_url":"https://github.com/AlekseyPleshkov/vue-scroll-show","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2Fvue-scroll-show","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2Fvue-scroll-show/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2Fvue-scroll-show/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlekseyPleshkov%2Fvue-scroll-show/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlekseyPleshkov","download_url":"https://codeload.github.com/AlekseyPleshkov/vue-scroll-show/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248271646,"owners_count":21075800,"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":["vue","vue-directive","vue-plugin","vue-scroll","vuejs2"],"created_at":"2024-11-07T02:03:39.065Z","updated_at":"2025-04-10T18:31:22.597Z","avatar_url":"https://github.com/AlekseyPleshkov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue Scroll Show\n\nShowing the element if the user reached it after scroll\n\n## Installation\n\n```js\nnpm i --save-dev vue-scroll-show\n```\n\n```js\nimport VueScrollShow from 'vue-scroll-show'\n\nVue.use(VueScrollShow)\n```\n\n#### SSR (Nuxt.js)\n\n```js\nimport VueScrollShow from 'vue-scroll-show/dist/ssr.index'\n\nVue.use(VueScrollShow)\n```\n\n## Usage\n\n```html\n\u003celement v-scroll-show\u003e\u003c/element\u003e\n```\n\nor with options\n\n```html\n\u003cdiv id='event'\u003e\n  \u003cspan v-scroll-show='{active: \"show fadeIn\", delay: 500, parentId: \"event\"}'\u003eShow one from parentId\u003c/span\u003e\n  \u003cspan v-scroll-show='{active: \"show fadeIn\", delay: 1000, parentId: \"event\"}'\u003eShow two from parentId\u003c/span\u003e\n\u003c/div\u003e\n\u003cspan v-scroll-show='{active: \"show fadeIn\"}'\u003eShow three without parentId\u003c/span\u003e\n\u003cspan v-scroll-show='{active: \"show fadeIn\", offset: 500}'\u003eShow four with offset 500\u003c/span\u003e\n```\n\n## Directive options\n\n| Option | Description |\n| ------ | ------ |\n| active | Add classes if element in display area |\n| delay | Timeout to add classes to element |\n| offset | Screen offset to add class to element |\n| parentId | Id parent element for starting add classes to directive elements |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekseypleshkov%2Fvue-scroll-show","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falekseypleshkov%2Fvue-scroll-show","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekseypleshkov%2Fvue-scroll-show/lists"}