{"id":22685457,"url":"https://github.com/shwilliam/vue-visibility-trigger","last_synced_at":"2025-06-10T19:41:36.082Z","repository":{"id":34082455,"uuid":"152958706","full_name":"shwilliam/vue-visibility-trigger","owner":"shwilliam","description":"👁 Declarative Vue component that emits an event when scrolled into view","archived":false,"fork":false,"pushed_at":"2022-12-30T05:59:07.000Z","size":738,"stargazers_count":5,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T13:53:57.682Z","etag":null,"topics":["component","scroll","view","visible","vue"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vue-visibility-trigger","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/shwilliam.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}},"created_at":"2018-10-14T09:33:47.000Z","updated_at":"2021-05-30T15:08:35.000Z","dependencies_parsed_at":"2023-01-15T04:31:44.864Z","dependency_job_id":null,"html_url":"https://github.com/shwilliam/vue-visibility-trigger","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-visibility-trigger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-visibility-trigger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-visibility-trigger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shwilliam%2Fvue-visibility-trigger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shwilliam","download_url":"https://codeload.github.com/shwilliam/vue-visibility-trigger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248623305,"owners_count":21135226,"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":["component","scroll","view","visible","vue"],"created_at":"2024-12-09T22:15:00.212Z","updated_at":"2025-04-12T19:36:15.108Z","avatar_url":"https://github.com/shwilliam.png","language":"JavaScript","funding_links":[],"categories":["Components \u0026 Libraries","UI Utilities","UI Utilities [🔝](#readme)"],"sub_categories":["UI Utilities","Event Handling"],"readme":"# vue-visibility-trigger\n\n\u003e Vue component that emits an event when scrolled into view\n\n\u003cimg src=\"https://user-images.githubusercontent.com/38357771/63648086-63730600-c6df-11e9-95b2-69cc978e0f2e.gif\" alt=\"Usage example\" width=\"360\"/\u003e\n\n[![vue-visibility-trigger demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/qkyolorn6w?module=%2Fsrc%2FApp.vue)\n\n## Installation\n\nInstall the package from npm by running\n\n```\n$ yarn add vue-visibility-trigger\n```\n\nor\n\n```\n$ npm i vue-visibility-trigger\n```\n\n## Usage\n\nImport, register and place the component in your Vue app. Attach a function to react to the 'scrolledIn' event with 'v-on:scrolledIn=\"...\"' or '@scrolledIn=\"...\"'.\n\n```\n\u003ctemplate\u003e\n  ...\n    \u003cVueVisibilityTrigger @scrolledIn=\"doSomething\" /\u003e\n  ...\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport VueVisibilityTrigger from 'vue-visibility-trigger'\n\nexport default {\n  ...\n  components: {\n    VueVisibilityTrigger\n  }\n};\n\u003c/script\u003e\n```\n\n## Dev\n\nRunning dev and example scripts require @vue/cli and @vue/cli-service-global to be installed. Install globally by running `npm i --g @vue/cli @vue/cli-service-global` or `yarn add global vue/cli @vue/cli-service-global`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshwilliam%2Fvue-visibility-trigger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshwilliam%2Fvue-visibility-trigger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshwilliam%2Fvue-visibility-trigger/lists"}