{"id":18892079,"url":"https://github.com/anas-araid/vue-simple-scroll-up","last_synced_at":"2026-04-28T23:33:39.252Z","repository":{"id":95040973,"uuid":"285602121","full_name":"anas-araid/vue-simple-scroll-up","owner":"anas-araid","description":"simple and lightweight \"back to top\" Vue.js component which scrolls up smoothly when clicked.","archived":false,"fork":false,"pushed_at":"2020-10-14T18:56:09.000Z","size":116,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-24T04:43:42.653Z","etag":null,"topics":["library","npm","pull-to-refresh","refresh","reload","scroll","scroll-to-top","scrolling","scrolls","vu-simple-scroll-up","vue","vue-component","vue-simple-scroll"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/anas-araid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-08-06T15:10:20.000Z","updated_at":"2023-02-07T11:21:31.000Z","dependencies_parsed_at":"2023-03-12T05:00:46.982Z","dependency_job_id":null,"html_url":"https://github.com/anas-araid/vue-simple-scroll-up","commit_stats":null,"previous_names":["asdf1899/vue-simple-scroll-up"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anas-araid/vue-simple-scroll-up","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-araid%2Fvue-simple-scroll-up","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-araid%2Fvue-simple-scroll-up/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-araid%2Fvue-simple-scroll-up/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-araid%2Fvue-simple-scroll-up/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anas-araid","download_url":"https://codeload.github.com/anas-araid/vue-simple-scroll-up/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anas-araid%2Fvue-simple-scroll-up/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32404340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["library","npm","pull-to-refresh","refresh","reload","scroll","scroll-to-top","scrolling","scrolls","vu-simple-scroll-up","vue","vue-component","vue-simple-scroll"],"created_at":"2024-11-08T08:01:06.051Z","updated_at":"2026-04-28T23:33:39.235Z","avatar_url":"https://github.com/anas-araid.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eSimple Scroll To Top\u003c/h1\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/vue-simple-scroll-up\" alt=\"version\" align=\"center\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/vue-simple-scroll-up\" alt=\"npm\" align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/min/vue-simple-scroll-up\" alt=\"npm bundle size\" align=\"center\" /\u003e \n  \u003cimg src=\"https://img.shields.io/github/license/asdf1899/vue-simple-scroll-up\" alt=\"license\" align=\"center\" /\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"https://anasaraid.me/hosting/vue-simple-scroll-up/logo.png\" alt=\"logo\" align=\"center\" width=\"320px\" /\u003e\n  \u003cp\u003eSimple and lightweight 'back to top' Vue.js component which scrolls up smoothly when clicked.\u003c/p\u003e\n\u003c/div\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003cbr\u003e\u003cbr\u003e\n\nCan be used also to refresh data to load newest contents using *scrolledOnTop* event.\n\n\u003e Inspired by Instagram, Linkedin, Reddit etc. scroll to refresh button. [[Images]](https://github.com/asdf1899/vue-simple-scroll-up#inspired-by-instagram-linkedin-reddit-etc-scroll-to-refresh-buttons)\n\n\u003cbr\u003e\n\n## Demo\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://anasaraid.me/hosting/vue-simple-scroll-up/example.gif\" width=\"320px\"/\u003e\n\u003c/div\u003e\n\nSee [demo](https://anasaraid.me/vue-simple-scroll-up-example/).\n\n\n# Getting Started\n\n## Install via npm\n\n```bash\nnpm i vue-simple-scroll-up --save\n```\n\n## Import\n\nImport for global usage\n\n```javascript\nimport Vue  from 'vue'\nimport scrollUp  from 'vue-simple-scroll-up'\n\nVue.use(scrollUp)\n...\n```  \n\nOr on a single component\n\n```javascript\nimport scrollUp from 'vue-simple-scroll-up'\n...\n},\ncomponents: {\n  'vue-scroll-to-top': scrollUp\n}\n...\n```\n## Usage\n\nAdd this into your files:\n\n```html\n\u003cvue-scroll-to-top text=\"Back to top\" :visibleY=\"1200\" :duration=\"1000\"\u003e\u003c/vue-scroll-to-top\u003e\n```\n\nTo trigger *scrolledOnTop* event:\n\n```html\n\u003cvue-scroll-to-top text=\"Back to top\" @scrolledOnTop=\"yourReloadFunction()\"\u003e\u003c/vue-scroll-to-top\u003e\n```\n\nOverwrite this css properties to change button style:\n\n```css\n.vue-scroll-button{\n  background-color: #4CAF50; /* button background color */\n  color: white; /* button text color */\n}\n.vue-scroll-button:hover{\n  box-shadow: 0 12px 14px -6px #4CAF50; /* button shadow */\n}\n```\n\n## Props\n\n| Property | Type | Default Value | Description |\n| ------------ | ------------ | ------------ | ------------ |\n| text | String | 'Back to top' | Button description.|\n| visibleY | Number | 400 | Show button when scrollY equals to visibleY value.|\n| duration | Number | 800 | Scrolling animation duration.|\n\n## Events\n\n| Name | Description |\n|------------------------|--------------------------------------------------------------------------|\n| scrolledOnTop | Triggered when scrolling finished (can be used to refresh content) |\n\n\n## Contributing\n\nFinding bugs, sending pull requests or improving the docs - any contribution is welcome and highly appreciated.\n\n\u003cbr\u003e\n\n### Inspired by Instagram, Linkedin, Reddit etc. scroll to refresh buttons\n\n\n\u003cimg  src=\"https://anasaraid.me/hosting/vue-simple-scroll-up/insta.jpg\"  width=\"320px\"/\u003e\u003cbr\u003e\n\u003cimg  src=\"https://anasaraid.me/hosting/vue-simple-scroll-up/reddit.jpg\"  width=\"320px\"/\u003e\n\n## License\n[MIT](https://github.com/asdf1899/vue-simple-scroll-up/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas-araid%2Fvue-simple-scroll-up","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanas-araid%2Fvue-simple-scroll-up","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas-araid%2Fvue-simple-scroll-up/lists"}