{"id":21714214,"url":"https://github.com/dartmoon-io/aos-responsive","last_synced_at":"2025-07-05T06:07:52.333Z","repository":{"id":57106003,"uuid":"395434787","full_name":"dartmoon-io/aos-responsive","owner":"dartmoon-io","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-30T18:44:14.000Z","size":101,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-21T21:41:50.398Z","etag":null,"topics":["library"],"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/dartmoon-io.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":"2021-08-12T20:20:02.000Z","updated_at":"2022-12-21T11:14:43.000Z","dependencies_parsed_at":"2024-10-27T09:03:39.986Z","dependency_job_id":"bc06d0c1-d8c9-4aef-81f3-a60efb9e239b","html_url":"https://github.com/dartmoon-io/aos-responsive","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"d30da4121401add1633161741558a5a379a97c24"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dartmoon-io/aos-responsive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Faos-responsive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Faos-responsive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Faos-responsive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Faos-responsive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dartmoon-io","download_url":"https://codeload.github.com/dartmoon-io/aos-responsive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Faos-responsive/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263221315,"owners_count":23432985,"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":["library"],"created_at":"2024-11-26T00:33:17.116Z","updated_at":"2025-07-05T06:07:52.318Z","avatar_url":"https://github.com/dartmoon-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AOS Responsive\nMake [Animate On Scroll](https://michalsnik.github.io/aos/) responsive! With this module you can ovveride the attributes of AOS as you would do it in CSS.\n\nThis package uses mobile first. This means that normal `data-aos-*` attributes are valid from mobile devices to larger ones and you can ovveride them using breakpoints.\n\n### Installation\n\n```bash\nyarn add @dartmoon/aos-responsive\n```\n\nor \n\n```bash\nnpm i @dartmoon/aos-responsive --save\n```\n\n### Usage\nHow to use it? Exactly like you would do with the standard AOS library!\n\n```js\nimport AOS from '@dartmoon/aos-responsive'\n\nAOS.init({\n    // You AOS configs\n})\n```\n\n\n### How to use it?\nSimply put a breakpoint name before the attribute.\n\n```html\n\u003cdiv data-aos=\"fade-up\" data-md-aos=\"fade-right\"\u003e...\u003c/div\u003e\n```\n\nSo now on mobile we will get the beautiful `fade-up` animation, while starting from the `md` breakpoint you will have `fade-right`.\n\n### Default breakpoints\nBreakpoints have been inspired by [Tailwind CSS](https://tailwindcss.com/docs/breakpoints).\n\n```js\n'sm': '640px',\n// =\u003e @media (min-width: 640px) { ... }\n\n'md': '768px',\n// =\u003e @media (min-width: 768px) { ... }\n\n'lg': '1024px',\n// =\u003e @media (min-width: 1024px) { ... }\n\n'xl': '1280px',\n// =\u003e @media (min-width: 1280px) { ... }\n\n'2xl': '1536px',\n// =\u003e @media (min-width: 1536px) { ... }\n```\n\nIf you want you can even override them.\n\n```js\nimport AOS from '@dartmoon/aos-responsive'\n\nAOS.init({\n    // ... your AOS configs\n\n    breakpoints: {\n        'tablet': '640px',\n        // =\u003e @media (min-width: 640px) { ... }\n\n        'laptop': '1024px',\n        // =\u003e @media (min-width: 1024px) { ... }\n\n        'desktop': '1280px',\n        // =\u003e @media (min-width: 1280px) { ... }\n    }\n})\n```\n\nSo now you can do something like this:\n\n```html\n\u003cdiv data-aos=\"fade-up\" data-tablet-aos=\"fade-right\"\u003e...\u003c/div\u003e\n```\n\n### Disable some attributes override\nMaybe you don't want to override all attributes of AOS.\n\n```js\nimport AOS from '@dartmoon/aos-responsive'\n\nAOS.init({\n    // ... your AOS configs\n\n    attributes: [\n        'aos'\n    ]\n})\n```\n\nNow, only `data-aos` will be checked against the breakpoint overrides.\n\nJust to be clear:\n\n```html\n\u003c!-- This will work --\u003e\n\u003cdiv data-aos=\"fade-up\" data-md-aos=\"fade-right\"\u003e...\u003c/div\u003e\n\n\u003c!-- This will NOT work --\u003e\n\u003cdiv data-aos=\"fade-up\" data-aos-duration=\"1200\" data-md-aos-duration=\"900\"\u003e...\u003c/div\u003e\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE.md file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdartmoon-io%2Faos-responsive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdartmoon-io%2Faos-responsive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdartmoon-io%2Faos-responsive/lists"}