{"id":15646762,"url":"https://github.com/jonaskuske/postcss-smoothscroll-anchor-polyfill","last_synced_at":"2025-04-30T12:28:49.329Z","repository":{"id":51066637,"uuid":"191459503","full_name":"jonaskuske/postcss-smoothscroll-anchor-polyfill","owner":"jonaskuske","description":"⚙ Transform CSS for use with smoothscroll-anchor-polyfill","archived":false,"fork":false,"pushed_at":"2024-06-10T23:38:33.000Z","size":2098,"stargazers_count":4,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T07:45:20.478Z","etag":null,"topics":["anchor","postcss","postcss-plugin","scroll","smooth-scroll","smooth-scrolling","smoothscroll","smoothscroll-anchor-polyfill"],"latest_commit_sha":null,"homepage":"https://jonaskuske.github.io/smoothscroll-anchor-polyfill/#usage-css","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/jonaskuske.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-06-11T22:33:20.000Z","updated_at":"2024-03-01T14:19:27.000Z","dependencies_parsed_at":"2024-04-05T23:22:11.379Z","dependency_job_id":"52ab8425-f184-4002-a973-55e43ade3dfb","html_url":"https://github.com/jonaskuske/postcss-smoothscroll-anchor-polyfill","commit_stats":{"total_commits":31,"total_committers":8,"mean_commits":3.875,"dds":0.7096774193548387,"last_synced_commit":"e0e98a933ba7d4be36fefd137e9c7c5d167d1973"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fpostcss-smoothscroll-anchor-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fpostcss-smoothscroll-anchor-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fpostcss-smoothscroll-anchor-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaskuske%2Fpostcss-smoothscroll-anchor-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaskuske","download_url":"https://codeload.github.com/jonaskuske/postcss-smoothscroll-anchor-polyfill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242650899,"owners_count":20163610,"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":["anchor","postcss","postcss-plugin","scroll","smooth-scroll","smooth-scrolling","smoothscroll","smoothscroll-anchor-polyfill"],"created_at":"2024-10-03T12:14:38.508Z","updated_at":"2025-03-09T05:30:50.541Z","avatar_url":"https://github.com/jonaskuske.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/postcss-smoothscroll-anchor-polyfill\"\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/npm/v/postcss-smoothscroll-anchor-polyfill.svg\" alt=\"NPM version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/jonaskuske/postcss-smoothscroll-anchor-polyfill\"\u003e\u003cimg align=\"center\" src=\"https://travis-ci.org/jonaskuske/postcss-smoothscroll-anchor-polyfill.svg?branch=master\" alt=\"Build status\"\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/npm/l/postcss-smoothscroll-anchor-polyfill.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e  \n\n\u0026nbsp;  \n\u0026nbsp;  \n\n\u003ch1 align=\"center\"\u003epostcss-smoothscroll-anchor-polyfill\u003c/h1\u003e\n\u003cp align=\"center\"\u003e⚙ \u003ca href=\"https://github.com/postcss/postcss\"\u003ePostCSS\u003c/a\u003e plugin that updates the standard \u003ccode\u003escroll-behavior\u003c/code\u003e property to work with \u003ca href=\"https://github.com/jonaskuske/smoothscroll-anchor-polyfill\"\u003esmoothscroll-anchor-polyfill\u003c/a\u003e\u003c/p\u003e\n\n\u0026nbsp;  \n\u0026nbsp;  \n\n```css\nhtml {\n    scroll-behavior: smooth;\n}\n```\n\ncompiles to:\n\n```css\nhtml {\n    font-family: \"scroll-behavior:smooth\";\n    scroll-behavior: smooth;\n}\n```\n\nor if all browsers in your [browserslist](https://github.com/browserslist/browserslist) support [CSS Custom Properties](https://caniuse.com/#feat=css-variables):\n\n\n```css\nhtml {\n    --scroll-behavior: smooth;\n    scroll-behavior: smooth;\n}\n```\n\n\u0026nbsp;\n\n## Existing `font` and `font-family`\n\nExisting `font` and `font-family` declarations are kept and [smoothscroll-anchor-polyfill](https://github.com/jonaskuske/smoothscroll-anchor-polyfill) will still work:\n\n\u003e 👉🏻 Even though the original font declarations are kept, using `html { }` only for `scroll-behavior` and declaring your font styles on `body { }` is prefered.\n\n```css\nhtml {\n    scroll-behavior: smooth;\n    font-family: \"Helvetica Neue\";\n}\n\n/* Compiles to: */\n\nhtml {\n    scroll-behavior: smooth;\n    font-family: \"scroll-behavior:smooth\", \"Helvetica Neue\";\n}\n```\n\n```css\nhtml {\n    scroll-behavior: smooth;\n    font: strong 1em/1.4 \"Helvetica Neue\";\n}\n\n/* Compiles to: */\n\nhtml {\n    scroll-behavior: smooth;\n    font: strong 1em/1.4 \"Helvetica Neue\";\n    font-family: \"scroll-behavior:smooth\", \"Helvetica Neue\";\n}\n```\n\n\u0026nbsp;\n\n## Installation\n\n**npm**:\n\n```\nnpm install postcss-smoothscroll-anchor-polyfill --save-dev\n```\n\n**or yarn**:\n\n```bash\nyarn add --dev postcss-smoothscroll-anchor-polyfill\n```\n\n\u0026nbsp;\n\n## Usage\n\n```js\npostcss([ require('postcss-smoothscroll-anchor-polyfill') ])\n```\n\nSee [PostCSS](https://github.com/postcss/postcss) docs for examples for your environment.\n\n\u0026nbsp;\n\n## Thanks to\n\nThis PostCSS plugin is based on a fork of [postcss-object-fit-images](https://github.com/ronik-design/postcss-object-fit-images), which was built by:\n\n* [Michael Shick](https://www.github.com/mshick)\n* [Federico Brigante](https://www.github.com/bfred-it)\n\n\u0026nbsp;  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskuske%2Fpostcss-smoothscroll-anchor-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaskuske%2Fpostcss-smoothscroll-anchor-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskuske%2Fpostcss-smoothscroll-anchor-polyfill/lists"}