{"id":13397929,"url":"https://github.com/vfeskov/vanilla-back-to-top","last_synced_at":"2025-04-04T16:16:24.509Z","repository":{"id":40209116,"uuid":"115743029","full_name":"vfeskov/vanilla-back-to-top","owner":"vfeskov","description":"Simple and smooth Back To Top button","archived":false,"fork":false,"pushed_at":"2023-01-03T20:41:00.000Z","size":1314,"stargazers_count":274,"open_issues_count":9,"forks_count":27,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T15:08:39.573Z","etag":null,"topics":["angular","autoprefixer","babel","babel-preset-env","back-top","browserslist","button","configurable","hexo","hugo","jekyll","material","postcss","pure","react","scroll","static-site-generator","vanilla","vue","zero-dependency"],"latest_commit_sha":null,"homepage":"","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/vfeskov.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-12-29T17:55:20.000Z","updated_at":"2025-03-27T12:31:09.000Z","dependencies_parsed_at":"2023-02-01T09:45:57.261Z","dependency_job_id":null,"html_url":"https://github.com/vfeskov/vanilla-back-to-top","commit_stats":null,"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfeskov%2Fvanilla-back-to-top","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfeskov%2Fvanilla-back-to-top/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfeskov%2Fvanilla-back-to-top/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfeskov%2Fvanilla-back-to-top/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vfeskov","download_url":"https://codeload.github.com/vfeskov/vanilla-back-to-top/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208183,"owners_count":20901570,"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":["angular","autoprefixer","babel","babel-preset-env","back-top","browserslist","button","configurable","hexo","hugo","jekyll","material","postcss","pure","react","scroll","static-site-generator","vanilla","vue","zero-dependency"],"created_at":"2024-07-30T18:01:53.962Z","updated_at":"2025-04-04T16:16:24.487Z","avatar_url":"https://github.com/vfeskov.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Vanilla Back To Top\n\n[![No Dependencies](http://svgshare.com/i/4rU.svg)](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/package.json)\n[![File Size](https://unpkg.com/vanilla-back-to-top@7.2.1/size-shield.svg)](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/dist/vanilla-back-to-top.min.js.gz)\n[![GitHub stars](https://img.shields.io/github/stars/vfeskov/vanilla-back-to-top.svg?style=social\u0026label=Stars)](https://github.com/vfeskov/vanilla-back-to-top)\n\nSimple and tiny Back To Top button with no dependencies. Hides when on top, scrolls up smoothly when clicked. Works equally great with [Vue](https://vuejs.org/), [React](https://reactjs.org/), [Angular](https://angular.io/) and without frameworks on [Jekyll](https://jekyllrb.com/), [Hugo](https://gohugo.io/) and [Hexo](https://hexo.io)\n\n[\u003cimg src=\"https://raw.githubusercontent.com/vfeskov/vanilla-back-to-top/fd6b302da46f551fe3d1085029fcb8ba67517388/examples/images/coral.png\" width=\"66\" /\u003e\u003cimg src=\"https://raw.githubusercontent.com/vfeskov/vanilla-back-to-top/fd6b302da46f551fe3d1085029fcb8ba67517388/examples/images/smaller.png\" width=\"57\" /\u003e\u003cimg src=\"https://raw.githubusercontent.com/vfeskov/vanilla-back-to-top/fd6b302da46f551fe3d1085029fcb8ba67517388/examples/images/rectangle.png\" width=\"121\" /\u003e\u003cimg src=\"https://raw.githubusercontent.com/vfeskov/vanilla-back-to-top/fd6b302da46f551fe3d1085029fcb8ba67517388/examples/images/different-arrow.png\" width=\"72\" /\u003e](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/EXAMPLES.md)\u003cbr/\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/vfeskov/vanilla-back-to-top/fd6b302da46f551fe3d1085029fcb8ba67517388/examples/images/live.gif\" width=\"320px\"/\u003e\n\n[Live demo](https://vfeskov.com/)\n\n## Features\n\n- Hides when on top\n- Scrolls up smoothly when clicked\n- Up-to-date [Material](https://material.io/)-like user experience\n- Compatible with [really old browsers](http://browserl.ist/?q=explorer+%3E%3D9%2Cexplorermobile+%3E%3D10%2Cedge+%3E%3D12%2Cfirefox+%3E%3D2%2Cfirefoxandroid+%3E%3D2%2Cchrome+%3E%3D4%2Csafari+%3E%3D5.1%2Copera+%3E%3D11.5%2Coperamobile+%3E%3D12%2Cchromeandroid+%3E%3D4%2Cios+%3E%3D7.1%2Cucandroid+%3E%3D11.4%2Candroid+%3E%3D3%2Csamsung+%3E%3D4%2Cblackberry+%3E%3D7)\n- No dependencies or requirements\n- Works great with [Vue](https://vuejs.org/), [React](https://reactjs.org/), [Angular](https://angular.io/) and other frameworks, see [INSTALL](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/INSTALL.md)\n- Works great on static websites with [Jekyll](https://jekyllrb.com/), [Hugo](https://gohugo.io/), [Hexo](https://hexo.io) and others\n\n## How to use\n\nAdd this to `\u003cbody\u003e` of your HTML:\n```html\n\u003cscript src=\"https://unpkg.com/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003eaddBackToTop({\n  diameter: 56,\n  backgroundColor: 'rgb(255, 82, 82)',\n  textColor: '#fff'\n})\u003c/script\u003e\n```\nFor alternative installation see [INSTALL](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/INSTALL.md)\n\nSee [EXAMPLES](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/EXAMPLES.md)\n\nFor all options see [OPTIONS](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/OPTIONS.md)\n\n## License\n\nMIT, see [LICENSE](https://github.com/vfeskov/vanilla-back-to-top/blob/v7.2.1/LICENSE)\n\nDefault icon from [Material Design Icons](https://material.io/icons/#ic_keyboard_arrow_up) under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), which only restricts re-selling the icon\n\n----------\n\n\n[Support me with a star ♥](https://github.com/vfeskov/vanilla-back-to-top)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfeskov%2Fvanilla-back-to-top","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvfeskov%2Fvanilla-back-to-top","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfeskov%2Fvanilla-back-to-top/lists"}