{"id":18553731,"url":"https://github.com/websemantics/vscode-scrollbar","last_synced_at":"2025-11-01T10:30:23.180Z","repository":{"id":150921856,"uuid":"110913945","full_name":"websemantics/vscode-scrollbar","owner":"websemantics","description":"Synthetic scrollbar with transparent track and style-able knob","archived":false,"fork":false,"pushed_at":"2017-12-02T13:19:44.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-26T08:42:35.296Z","etag":null,"topics":["scrollbars","synthetic","vscode"],"latest_commit_sha":null,"homepage":null,"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/websemantics.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-16T02:44:42.000Z","updated_at":"2021-01-13T19:54:35.000Z","dependencies_parsed_at":"2023-04-09T04:32:31.459Z","dependency_job_id":null,"html_url":"https://github.com/websemantics/vscode-scrollbar","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/websemantics%2Fvscode-scrollbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fvscode-scrollbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fvscode-scrollbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fvscode-scrollbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websemantics","download_url":"https://codeload.github.com/websemantics/vscode-scrollbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239278543,"owners_count":19612329,"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":["scrollbars","synthetic","vscode"],"created_at":"2024-11-06T21:18:07.319Z","updated_at":"2025-11-01T10:30:23.120Z","avatar_url":"https://github.com/websemantics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n┌─────────────────────────────────────────────────────┬─┬───────────────────────┐\n│  ╭─╮╭─╮┬─╮╭─╮┬  ┬  ╭─╮┬─╮                           │ │                       │\n│  ╰─╮│  ├┬╯│ ││  │  ├┤ ├┬╯                           ▐█▊                       │\n│  ╰─╯╰─╯┴╰─╰─╯┴─╯┴─╯╰─╯┴╰─                           ▐█▊ ◀─ Knob               │\n│                                                     ▐█▊                       │\n│                           Horizontal Orientation    │ │                       │\n│                                    │                │ │ ◀─ Transparent Track  │\n│                                    ▼                │ │                       │\n├──────────────────────────▄▄▄▄▄▄▄▄▄▄▄▄───────────────┤ │                       │\n└──────────────────────────▀▀▀▀▀▀▀▀▀▀▀▀───────────────┴─┴───────────────────────┘\n```\n\nSynthetic scrollbar with transparent track and style-able knob, Visual Stuido Code style.\n\n[![Live demo](https://img.shields.io/badge/Live%20demo-%E2%86%92-9D6EB3.svg?style=flat-square)](https://websemantics.github.io/vscode-scrollbar/)\n\n## Usage\n\nConsider the following markup\n\n```html\n\u003cmain class=\"container\"\u003e\n    \u003cdiv id=\"content\"\u003e\u003c/div\u003e\n\u003c/main\u003e\n```\n\nAnd the following style,\n\n```css\n#content {\n    width: 2000px;\n    height: 2000px;\n}\n```\n\nTo enable the Vscode-style scroller to manager such a large content element, import the javascript / css files of this project into a new html page then create an instance of the `Scroller` class (see [Demo](https://websemantics.github.io/vscode-scrollbar/))\n\n```js\nconst scroller = new Scroller(document.querySelector('.container'))\n\nwindow.onresize = () =\u003e {\n    scroller.resize()\n}\n```\n\nTo adjust the `knob` size, attach the `resize` method of the `Scroller` instance with window resize event as show above.\n\nThat's all, enjoy!\n\n## Support\n\nNeed help or have a question? post a questions at [StackOverflow](https://stackoverflow.com/questions/tagged/vscode-scrollbar+web+semantics)\n\n*Please don't use the issue trackers for support/questions.*\n\n## Contributions\n\nWe are more than happy to accept external contributions to the project in the form of feedback, bug reports and even better - pull requests :)\n\n## Copyright and license\n\n[MIT license](http://opensource.org/licenses/mit-license.php)\nCopyright (c) Web Semantics, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fvscode-scrollbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsemantics%2Fvscode-scrollbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fvscode-scrollbar/lists"}