{"id":29955128,"url":"https://github.com/phucbm/ripple-effect","last_synced_at":"2026-01-20T16:56:02.551Z","repository":{"id":304498369,"uuid":"1018958248","full_name":"phucbm/ripple-effect","owner":"phucbm","description":"A TypeScript utility for applying a ripple effect to a set of elements.","archived":false,"fork":false,"pushed_at":"2025-08-01T23:50:33.000Z","size":180,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-02T04:34:33.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://phucbm.github.io/ripple-effect/","language":"TypeScript","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/phucbm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"phucbm","patreon":"phucbm","open_collective":"phucbm","ko_fi":"phucbm","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2025-07-13T12:36:28.000Z","updated_at":"2025-07-14T03:40:58.000Z","dependencies_parsed_at":"2025-07-13T14:48:31.589Z","dependency_job_id":null,"html_url":"https://github.com/phucbm/ripple-effect","commit_stats":null,"previous_names":["phucbm/ripple-effect"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phucbm/ripple-effect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fripple-effect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fripple-effect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fripple-effect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fripple-effect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phucbm","download_url":"https://codeload.github.com/phucbm/ripple-effect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucbm%2Fripple-effect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268578914,"owners_count":24273089,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-03T17:10:51.783Z","updated_at":"2026-01-20T16:56:02.516Z","avatar_url":"https://github.com/phucbm.png","language":"TypeScript","funding_links":["https://github.com/sponsors/phucbm","https://patreon.com/phucbm","https://opencollective.com/phucbm","https://ko-fi.com/phucbm"],"categories":[],"sub_categories":[],"readme":"# ripple-effect\n\nApplies a ripple effect that distributes normalized values [0; 1] from a center point. Useful for animations or visual\nemphasis.\n\n[![npm version](https://badgen.net/npm/v/@phucbm/ripple-effect?icon=npm)](https://www.npmjs.com/package/@phucbm/ripple-effect)\n[![npm downloads](https://badgen.net/npm/dm/@phucbm/ripple-effect?icon=npm)](https://www.npmjs.com/package/@phucbm/ripple-effect)\n[![npm dependents](https://badgen.net/npm/dependents/@phucbm/ripple-effect?icon=npm)](https://www.npmjs.com/package/@phucbm/ripple-effect)\n[![github stars](https://badgen.net/github/stars/phucbm/ripple-effect?icon=github)](https://github.com/phucbm/ripple-effect/)\n[![github license](https://badgen.net/github/license/phucbm/ripple-effect?icon=github)](https://github.com/phucbm/ripple-effect/blob/main/LICENSE)\n\n![Screen Recording 2025-07-13 at 18 35 54](https://github.com/user-attachments/assets/afce54ce-a80c-4fb4-8575-6eed833a1ab4)\n\n## Installation\n\n```bash\nnpm i @phucbm/ripple-effect\n```\n\n```bash\npnpm add @phucbm/ripple-effect\n```\n\n## Usage\n\n```typescript\nimport {applyRippleEffect} from '@phucbm/ripple-effect';\n\nconst elements = document.querySelectorAll('.item');\n\napplyRippleEffect({\n    length: elements.length,\n    centerIndex: 5,\n    rippleRadius: 3,\n    callback: (normalizedValue, index) =\u003e {\n        const scale = 1 + normalizedValue; // [1.0 - 2.0]\n        elements[index].style.transform = `scale(${scale})`;\n    }\n});\n\n```\n\n## Development\n\n```bash\n# Install dependencies\npnpm install\n\n# Run tests\npnpm test\n\n# Build the package\npnpm run build\n\n# Run tests in watch mode\npnpm run test:watch\n```\n\n## License\n\nMIT © [phucbm](https://github.com/phucbm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucbm%2Fripple-effect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphucbm%2Fripple-effect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucbm%2Fripple-effect/lists"}