{"id":30420565,"url":"https://github.com/skybrud/sky-scroll","last_synced_at":"2025-08-22T08:19:32.626Z","repository":{"id":57362522,"uuid":"102386732","full_name":"skybrud/sky-scroll","owner":"skybrud","description":"Service providing the engine for events based on scroll ","archived":false,"fork":false,"pushed_at":"2018-10-04T09:44:42.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-16T07:31:25.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/skybrud.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":"2017-09-04T17:40:36.000Z","updated_at":"2018-10-04T09:44:44.000Z","dependencies_parsed_at":"2022-09-13T21:00:47.432Z","dependency_job_id":null,"html_url":"https://github.com/skybrud/sky-scroll","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/skybrud/sky-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skybrud%2Fsky-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skybrud%2Fsky-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skybrud%2Fsky-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skybrud%2Fsky-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skybrud","download_url":"https://codeload.github.com/skybrud/sky-scroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skybrud%2Fsky-scroll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271606604,"owners_count":24788981,"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-22T02:00:08.480Z","response_time":65,"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":"2025-08-22T08:19:31.976Z","updated_at":"2025-08-22T08:19:32.612Z","avatar_url":"https://github.com/skybrud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SkyScroll\n\u003e A Vue plugin for scroll/resize events and calculations.\n\n## Description\nThis plugin exposes a handful of useful properties on all Vue instances, including scroll y and x position, window height and width as well as document height and width.\n\n## Installation\n```bash\nnpm install sky-scroll\n```\nor\n```bash\nyarn add sky-scroll\n```\n\n## Usage\nImport and install SkyScroll:\n```js\nimport Vue from 'vue';\nimport SkyScroll from 'sky-scroll';\n\nVue.use(SkyScroll);\n\n```\n\n`$SkyScroll` is available on any Vue instance and exposes a number of useful scroll-related properties.\n\n**In a component template:**\n```html\n\u003cdiv class=\"example-component\"\u003e\n    \u003cspan\u003e{{$SkyScroll.scroll.y}}\u003c/span\u003e\n    \u003cspan\u003e{{$SkyScroll.scroll.x}}\u003c/span\u003e\n    \u003cspan\u003e{{$SkyScroll.scroll.deltaY}}\u003c/span\u003e\n    \u003cspan\u003e{{$SkyScroll.scroll.directionY}}\u003c/span\u003e\n    \u003cspan\u003e{{$SkyScroll.scroll.last.y}}\u003c/span\u003e\n    \u003cspan\u003e{{$SkyScroll.window.width}}\u003c/span\u003e\n    \u003cspan\u003e{{$SkyScroll.document.height}}\u003c/span\u003e\n\u003c/div\u003e\n```\n\n**In the component $SkyScroll prop, a few options and scroll and resize callbacks are also available:**\n```js\nexport default {\n    name: 'ExampleComponent',\n    data() {\n        // ...\n    },\n    methods: {\n        // ...\n    },\n    $SkyScroll: {\n        // scroll [function]\n        // Callback for scroll event\n        scroll({ scroll, window, document }) {\n            console.log('scroll y', scroll.y);\n            console.log('scroll last y', scroll.last.y);\n            console.log('scroll direction y', scroll.directionY);\n            console.log('window width', window.width);\n            console.log('document height', document.height);\n        },\n        // resize [function]\n        // Callback for resize event\n        resize({ scroll, window, document }) {\n            console.log('scroll x', scroll.x);\n            console.log('window width', window.width);\n            console.log('document height', document.height);\n        },\n        // onMounted [boolean] - default: true\n        // If true scroll and resize callbacks a executed on component mount\n        onMounted: true.\n        // dimensions [boolean] - default: false\n        // Determines if SkyScroll should keep track of $el dimensions. If true\n        // this.$dimensions will be added to the instance, which holds the\n        // boundingClientRect of this.$el - and automatically keeps it up to\n        // date on resize.\n        dimensions: false,\n    },\n};\n```\n\n# Credits\nThis module is made by the Frontenders at [skybrud.dk](http://www.skybrud.dk/). Feel free to use it in any way you want. Feedback, questions and bugreports should be posted as issues. Pull-requests appreciated!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskybrud%2Fsky-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskybrud%2Fsky-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskybrud%2Fsky-scroll/lists"}