{"id":50825527,"url":"https://github.com/rgglez/svelte-notoriuosbutton","last_synced_at":"2026-06-13T18:39:27.857Z","repository":{"id":362265925,"uuid":"1258123206","full_name":"rgglez/svelte-notoriuosbutton","owner":"rgglez","description":"A Svelte (3/4, 5) component to create a button with animated effects, to make it \"notorious\".","archived":false,"fork":false,"pushed_at":"2026-06-03T10:06:26.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T12:06:59.838Z","etag":null,"topics":["button-animation","component","marketing","svelte","svelte3","svelte5"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgglez.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-03T09:44:15.000Z","updated_at":"2026-06-03T10:09:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rgglez/svelte-notoriuosbutton","commit_stats":null,"previous_names":["rgglez/svelte-notoriuosbutton"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rgglez/svelte-notoriuosbutton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgglez%2Fsvelte-notoriuosbutton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgglez%2Fsvelte-notoriuosbutton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgglez%2Fsvelte-notoriuosbutton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgglez%2Fsvelte-notoriuosbutton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgglez","download_url":"https://codeload.github.com/rgglez/svelte-notoriuosbutton/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgglez%2Fsvelte-notoriuosbutton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34296380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":["button-animation","component","marketing","svelte","svelte3","svelte5"],"created_at":"2026-06-13T18:39:27.088Z","updated_at":"2026-06-13T18:39:27.853Z","avatar_url":"https://github.com/rgglez.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-notoriousbutton\n\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n![GitHub all releases](https://img.shields.io/github/downloads/rgglez/svelte-notoriuosbutton/total)\n![GitHub issues](https://img.shields.io/github/issues/rgglez/svelte-notoriuosbutton)\n![GitHub commit activity](https://img.shields.io/github/commit-activity/y/rgglez/svelte-notoriuosbutton)\n[![GitHub release](https://img.shields.io/github/release/rgglez/svelte-notoriuosbutton.svg)](https://github.com/rgglez/svelte-notoriuosbutton/releases/)\n![GitHub stars](https://img.shields.io/github/stars/rgglez/svelte-notoriuosbutton?style=social)\n![GitHub forks](https://img.shields.io/github/forks/rgglez/svelte-notoriuosbutton?style=social)\n\n**svelte-notoriousbutton** is a Svelte button component with CSS-only visual\neffects.\n\n## Installation\n\n```bash\nnpm install @rgglez/svelte-notoriousbutton\n```\n\n## Usage\n\n### Svelte 3 / 4\n\n```svelte\n\u003cscript\u003e\n  import NotoriousButton from '@rgglez/svelte-notoriousbutton/svelte4';\n\u003c/script\u003e\n\n\u003cNotoriousButton label=\"Click me\" effect=\"sweep\" /\u003e\n```\n\n### Svelte 5\n\nBare import (default export points to Svelte 5):\n\n```svelte\n\u003cscript\u003e\n  import NotoriousButton from '@rgglez/svelte-notoriousbutton';\n\u003c/script\u003e\n\n\u003cNotoriousButton label=\"Click me\" effect=\"glow\" /\u003e\n```\n\nOr explicit subpath:\n\n```svelte\n\u003cscript\u003e\n  import NotoriousButton from '@rgglez/svelte-notoriousbutton/svelte5';\n\u003c/script\u003e\n\n\u003cNotoriousButton label=\"Click me\" effect=\"glow\" /\u003e\n```\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `label` | `string` | `'Click me'` | Button text |\n| `effect` | `'sweep' \\| 'glow' \\| 'shake' \\| 'pulse' \\| 'border-sweep' \\| ''` | `''` | Visual effect |\n| `trigger` | `'hover' \\| 'auto'` | `'hover'` | Fire effect on hover or continuously |\n| `class` | `string` | `''` | Additional CSS classes |\n| `style` | `string` | `''` | Inline styles |\n\n## Effects\n\n| Value | Description |\n|-------|-------------|\n| `sweep` | Glossy diagonal shine that slides across on hover |\n| `glow` | Radial ring and brightness highlight on hover |\n| `shake` | Vibration animation triggered on hover |\n| `pulse` | Continuous breathing scale animation; pauses on hover |\n| `border-sweep` | Conic-gradient light sweeps around the button border |\n\nAll effects are implemented in pure CSS — no JavaScript at runtime.\n\n## Examples\n\n```svelte\n\u003c!-- Default --\u003e\n\u003cNotoriousButton label=\"Save\" /\u003e\n\n\u003c!-- Sweep shine --\u003e\n\u003cNotoriousButton label=\"Submit\" effect=\"sweep\" /\u003e\n\n\u003c!-- Glow ring --\u003e\n\u003cNotoriousButton label=\"Confirm\" effect=\"glow\" /\u003e\n\n\u003c!-- Shake on hover --\u003e\n\u003cNotoriousButton label=\"Delete\" effect=\"shake\" style=\"background: #dc2626;\" /\u003e\n\n\u003c!-- Continuous pulse --\u003e\n\u003cNotoriousButton label=\"New\" effect=\"pulse\" /\u003e\n\n\u003c!-- Custom class and style --\u003e\n\u003cNotoriousButton label=\"Custom\" effect=\"sweep\" class=\"my-class\" style=\"border-radius: 999px;\" /\u003e\n```\n\n## CSS customization\n\nImport the shared stylesheet directly to override variables:\n\n```js\nimport '@rgglez/svelte-notoriousbutton/notorious-button.css';\n```\n\nThe `.notorious-btn` class is applied to every button. Effect classes follow the\npattern `.effect-{name}`.\n\n## Development\n\n### Prerequisites\n\n- Node.js\n- npm\n- git\n\n### Makefile targets\n\n| Target | Description |\n|--------|-------------|\n| `make tags` | List all git tags sorted by version |\n| `make patch` | Bump the patch version, commit, tag, and push to origin |\n| `make publish` | Publish the current version to npm |\n| `make release` | Run `patch` then `publish` in one step |\n\nTypical release flow:\n\n```bash\n# Review changes, then:\nmake release\n```\n\nThis will:\n\n1. Increment the patch version in `package.json` (e.g. `1.0.0` → `1.0.1`)\n2. Commit `package.json` with message `chore: bump version to X.Y.Z`\n3. Create git tag `vX.Y.Z`\n4. Push branch and tag to origin\n5. Run `npm publish --access public`\n\nTo publish without bumping the version:\n\n```bash\nmake publish\n```\n\nTo inspect existing tags:\n\n```bash\nmake tags\n```\n\n## Example\n\nYou can try the example (Svelte 5) in the `example` directory. You can also view\na\n[live example](https://svelte.dev/playground/04642e5a0de64dc7a4785e928ec12f18?version=5.56.1).\n\n## Notes\n\n* \"[Notorious](https://www.youtube.com/watch?v=Z9z0e1Wm64M)\" is a famous song by Duran Duran.\n\n## License\n\nCopyright 2026 Rodolfo González González.\n\nLicensed under [Apache v2.0](https://www.apache.org/licenses/LICENSE-2.0)\nlicense. Please read the [LICENSE](LICENSE) file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgglez%2Fsvelte-notoriuosbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgglez%2Fsvelte-notoriuosbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgglez%2Fsvelte-notoriuosbutton/lists"}