{"id":21161549,"url":"https://github.com/mudin/magic-scroll","last_synced_at":"2026-01-01T23:14:14.095Z","repository":{"id":72022836,"uuid":"204087968","full_name":"mudin/magic-scroll","owner":"mudin","description":"Apple Magic Mouse scrolling effect for normal mouses","archived":false,"fork":false,"pushed_at":"2020-10-19T23:45:43.000Z","size":3490,"stargazers_count":44,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T09:29:03.174Z","etag":null,"topics":["es6","magic-scroll","rollup","scroll","smooth-scrolling"],"latest_commit_sha":null,"homepage":"https://mudin.github.io/magic-scroll/","language":"HTML","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/mudin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-24T00:29:19.000Z","updated_at":"2024-11-14T09:55:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"e25dfa86-2698-4514-8d54-27691dcfe87e","html_url":"https://github.com/mudin/magic-scroll","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fmagic-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fmagic-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fmagic-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudin%2Fmagic-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudin","download_url":"https://codeload.github.com/mudin/magic-scroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243606955,"owners_count":20318314,"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":["es6","magic-scroll","rollup","scroll","smooth-scrolling"],"created_at":"2024-11-20T13:14:51.206Z","updated_at":"2026-01-01T23:14:14.062Z","avatar_url":"https://github.com/mudin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mudin/magic-scroll/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/mudin/magic-scroll.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/js/magic-scroll\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/magic-scroll.svg\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://hits.dwyl.io/mudin/magic-scroll\"\u003e\n    \u003cimg src=\"http://hits.dwyl.io/mudin/magic-scroll.svg\" alt=\"HitCount\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://unpkg.com/magic-scroll.js@latest/dist/MagicScroll.cjs.js\"\u003e\n    \u003cimg src=\"https://img.badgesize.io/mudin/magic-scroll/master/dist/MagicScroll.cjs.js?compression=gzip\" alt=\"size\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# MagicScroll\n\n## Why MagicScroll?\nIf you have tried to use Apple magic mouse or macbook Trackpad, the scroll is very smooth. However normal scroll is not.\nIn order to make the smilar effect I have tried to implement MagicScroll.\nWe can apply this for any kind of place where mouse wheel is need to be smooth (For example, IndoorJS demo below)\n\n\n## [Demo](https://mudin.github.io/magic-scroll/)\n\n![Demo](https://mudin.github.io/magic-scroll/magic-scroll.gif)\n\n## [JS fiddle demo](https://jsfiddle.net/mudin/2nstb5pf/)\n## [IndoorJS demo](https://mudin.github.io/indoorjs/)\n\n## Install\n\n```\n  npm i magic-scroll.js -S\n```\nor\n```\nhttps://unpkg.com/magic-scroll.js/dist/MagicScroll.umd.js\n```\n## Usage\n\n```\nlet magicScroll = new MagicScroll({\n  target: document.querySelector(\".scroll-view.after\"), // for body, no need to set target\n  speed: 80,\n  smooth: 12\n});\n```\n\n## License\n\n[MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fmagic-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudin%2Fmagic-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudin%2Fmagic-scroll/lists"}