{"id":22105247,"url":"https://github.com/zhangyu1818/wave-effect","last_synced_at":"2025-03-24T02:45:04.786Z","repository":{"id":98328463,"uuid":"365701992","full_name":"zhangyu1818/wave-effect","owner":"zhangyu1818","description":"click wave effect","archived":false,"fork":false,"pushed_at":"2021-05-09T08:42:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T21:46:50.645Z","etag":null,"topics":["wave","wave-effect"],"latest_commit_sha":null,"homepage":"https://zhangyu1818.github.io/wave-effect/","language":"TypeScript","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/zhangyu1818.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":"2021-05-09T08:17:12.000Z","updated_at":"2021-05-09T08:42:45.000Z","dependencies_parsed_at":"2023-04-24T18:03:14.024Z","dependency_job_id":null,"html_url":"https://github.com/zhangyu1818/wave-effect","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"80d669388b6438e115918b0a2cb4ea1995439ea8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangyu1818%2Fwave-effect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangyu1818%2Fwave-effect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangyu1818%2Fwave-effect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangyu1818%2Fwave-effect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangyu1818","download_url":"https://codeload.github.com/zhangyu1818/wave-effect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200674,"owners_count":20576673,"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":["wave","wave-effect"],"created_at":"2024-12-01T06:40:09.257Z","updated_at":"2025-03-24T02:45:04.757Z","avatar_url":"https://github.com/zhangyu1818.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wave-effect\n\n![npm-version](https://img.shields.io/npm/v/wave-effect.svg)\n[![codecov](https://codecov.io/gh/zhangyu1818/wave-effect/branch/main/graph/badge.svg?token=g3WwTlxzGX)](https://codecov.io/gh/zhangyu1818/wave-effect)\n![bundlesize-js-image](https://img.badgesize.io/https:/unpkg.com/wave-effect/dist/wave.js?label=gzip\u0026compression=gzip\u0026style=flat-square)\n\n\nclick wave effect with CSS animation.\n\n## Install\n\n```bash\nnpm install wave-effect\n```\n\n```bash\nyarn add wave-effect\n```\n\n# Usage\n\n```javascript\nimport wave,{ clearEffect } from 'wave-effect'\nimport 'wave-effect/dist/wave.css'\n\nconst button = document.getElementById(\"button\")\n\nwave(button)\n\n// clear effect\nclearEffect(button)\n```\n\n## API\n\n```javascript\nwave(element: Element, options?: WaveOptions)\n```\n\n**WaveOptions**\n\n```typescript\ninterface WaveOptions {\n  // current wave effect color\n  waveColor?: string \n  // if element includes these className, click doesn't trigger effect\n  disabledClass?: string[] \n}\n```\n\n## Customize Style\n\nyou can override less variables to customize style.\n\n```less\n@import \"~wave-effect/src/wave.less\";\n\n@wave-color: red;\n@wave-animation-width: 20px;\n```\n\nor use css variables.\n\n```css\n:root {\n  --wave-shadow-color: red;\n  --wave-animation-width: 20px;\n}\n```\n\n\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangyu1818%2Fwave-effect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangyu1818%2Fwave-effect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangyu1818%2Fwave-effect/lists"}