{"id":20271810,"url":"https://github.com/tanrax/simplescrollup","last_synced_at":"2025-04-11T04:32:44.952Z","repository":{"id":57361430,"uuid":"109115750","full_name":"tanrax/simplescrollup","owner":"tanrax","description":"Simple plugin in Javascript to animate scrolling when you return to the top of the page","archived":false,"fork":false,"pushed_at":"2019-02-02T15:46:52.000Z","size":864,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:39:56.862Z","etag":null,"topics":["animated","javascript","plugin","scrolling","scrollup","vanilla"],"latest_commit_sha":null,"homepage":"http://simplescrollup.programadorwebvalencia.com/","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/tanrax.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-01T10:04:53.000Z","updated_at":"2022-10-05T18:37:49.000Z","dependencies_parsed_at":"2022-09-07T19:52:08.524Z","dependency_job_id":null,"html_url":"https://github.com/tanrax/simplescrollup","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/tanrax%2Fsimplescrollup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanrax%2Fsimplescrollup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanrax%2Fsimplescrollup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanrax%2Fsimplescrollup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanrax","download_url":"https://codeload.github.com/tanrax/simplescrollup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345202,"owners_count":21088231,"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":["animated","javascript","plugin","scrolling","scrollup","vanilla"],"created_at":"2024-11-14T12:39:28.702Z","updated_at":"2025-04-11T04:32:44.853Z","avatar_url":"https://github.com/tanrax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple plugin in Javascript Vanilla to animate scrolling when you return to the top of the page\n\n## Demo\n\n[Project Site](http://simplescrollup.programadorwebvalencia.com/)\n\n## Download\n\n```bash\nnpm install simplescrollup\n```\n\nor\n\n```bash\nyarn add simplescrollup\n```\n\n## Quick start\n\n1. Download **simplescrollup.js** .\n\n\n2. Link in your HTML **simplescrollup.js** .\n\n```html\n\t\u003cscript src=\"simplescrollup.js\"\u003e\u003c/script\u003e\n```\n\nExample\n\n```html\n\u003chtml\u003e\n\t\u003chead\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t\u003c!-- Your HTML content --\u003e\n\t\t\u003cscript src=\"simplescrollup.js\"\u003e\u003c/script\u003e\n\t\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n3. Add your button with this structure.\n\n\n```html\n\u003ca href=\"#up\" class=\"simplescrollup__button simplescrollup__button--hide\"\u003eYour text\u003c/a\u003e\n```\n\nExample\n\n```html\n\u003chtml\u003e\n\t\u003chead\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t\u003c!-- Your HTML content --\u003e\n\t\t\u003ca href=\"#up\" class=\"simplescrollup__button simplescrollup__button--hide\"\u003eYour text\u003c/a\u003e\n\t\t\u003cscript src=\"simplescrollup.js\"\u003e\u003c/script\u003e\n\t\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n4. Add CSS.\n\n```css\n.simplescrollup__button {\n\tposition: fixed;\n\tbottom: 3rem;\n\tright: 3rem;\n\ttransition: 1s all;\n\tz-index: 10000;\n}\n.simplescrollup__button--show {\n\ttransform: translateX(0);\n}\n.simplescrollup__button--hide {\n\ttransform: translateX(100px);\n}\n```\n\nExample\n\n```html\n\u003chtml\u003e\n\t\u003chead\u003e\n\t\t\u003cstyle\u003e\n\t\t\t.simplescrollup__button {\n\t\t\t\tposition: fixed;\n\t\t\t\tbottom: 3rem;\n\t\t\t\tright: 3rem;\n\t\t\t\ttransition: 1s all;\n\t\t\t\tz-index: 10000;\n\t\t\t}\n\t\t\t.simplescrollup__button--show {\n\t\t\t\ttransform: translateX(0);\n\t\t\t}\n\t\t\t.simplescrollup__button--hide {\n\t\t\t\ttransform: translateX(100px);\n\t\t\t}\n\t\t\u003c/style\u003e\n\t\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t\u003c!-- Your HTML content --\u003e\n\t\t\u003ca href=\"#up\" class=\"simplescrollup__button simplescrollup__button--hide\"\u003eYour text\u003c/a\u003e\n\t\t\u003cscript src=\"simplescrollup.js\"\u003e\u003c/script\u003e\n\t\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n5. Enjoy!!\n\n## Advance\n\nYou can control the duration and type of animation.\n\n```html\n\u003ca href=\"#up\" duraction=\"1000\" height-hide=\"100\" easing=\"easeInOutQuad\" class=\"simplescrollup__button simplescrollup__button--hide\"\u003eYour text\u003c/a\u003e\n```\n\n* **duration**: Time in milliseconds that it will take to go up above the page.\n* **height-hide**: Distance in pixels from top at which button will be displayed.\n* **easing**: You can change the animation scroll for any of this list.\n\t* linear\n\t* easeInQuad\n\t* easeOutQuad\n\t* easeInOutQuad\n\t* easeInCubic\n\t* easeOutCubic\n\t* easeInOutCubic\n\t* easeInQuart\n\t* easeOutQuart\n\t* easeInOutQuart\n\t* easeInQuint\n\t* easeOutQuint\n\t* easeInOutQuint\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanrax%2Fsimplescrollup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanrax%2Fsimplescrollup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanrax%2Fsimplescrollup/lists"}