{"id":15999583,"url":"https://github.com/kcmr/good-vibrations","last_synced_at":"2025-04-05T01:14:45.195Z","repository":{"id":58229248,"uuid":"109613371","full_name":"kcmr/good-vibrations","owner":"kcmr","description":"Web Component that uses the Vibration API in browsers that support it","archived":false,"fork":false,"pushed_at":"2017-11-18T11:21:45.000Z","size":1823,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T11:47:21.313Z","etag":null,"topics":["mobile","polymer","polymer-2x","vibration-api","web-components"],"latest_commit_sha":null,"homepage":"http://kcmr.github.io/good-vibrations/","language":"HTML","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/kcmr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-05T20:23:51.000Z","updated_at":"2017-11-09T11:42:00.000Z","dependencies_parsed_at":"2022-08-31T09:42:21.855Z","dependency_job_id":null,"html_url":"https://github.com/kcmr/good-vibrations","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcmr%2Fgood-vibrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcmr%2Fgood-vibrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcmr%2Fgood-vibrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kcmr%2Fgood-vibrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kcmr","download_url":"https://codeload.github.com/kcmr/good-vibrations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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":["mobile","polymer","polymer-2x","vibration-api","web-components"],"created_at":"2024-10-08T09:00:24.624Z","updated_at":"2025-04-05T01:14:45.180Z","avatar_url":"https://github.com/kcmr.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026lt;good-vibrations\u0026gt;\n\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg?style=flat-square)](https://www.webcomponents.org/element/kcmr/good-vibrations)\n\n\u003e `\u003cgood-vibrations\u003e` is a component meant to be used as a singleton, that uses the [Vibration API](https://developer.mozilla.org/docs/Web/API/Vibration_API) to emit vibrations in browsers that support it.   \n__[\u0026lt;good-vibrations\u0026gt; demo](http://kcmr.github.io/good-vibrations/)__\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://kcmr.github.io/good-vibrations/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/kcmr/good-vibrations/master/good-vibrations.png\" alt=\"Live demo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Installation and import\n\nInstall the component using [Bower](http://bower.io/):\n\n```bash\n$ bower i -S good-vibrations\n```\n\nImport Web Components loader (optional) and the component:\n\n```html\n\u003cscript src=\"bower_components/webcomponentsjs/webcomponents-loader.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"import\" href=\"bower_components/good-vibrations/good-vibrations.html\"\u003e \n```\n\n## Usage\n\n__Example:__\n```html\n\u003cgood-vibrations vibrate duration=\"100\"\u003e\u003c/good-vibrations\u003e\n```\n\n__Example with vibration / silence intervals:__\n```html\n\u003cgood-vibrations vibrate duration=\"100,200,50,100,50,100,100,200,200,400,100,200,200\"\u003e\u003c/good-vibrations\u003e\n```\n\n__Canceling any running vibration:__\n```js\ndocument.querySelector('good-vibrations').cancel();\n```\n\nOr declaratively using the boolean attribute `mute`:\n```html\n\u003cgood-vibrations mute\u003e\u003c/good-vibrations\u003e\n```\n\n__Get Vibration API support:__\n```html\n\u003cgood-vibrations vibration-supported=\"{{apiSupported}}\"\u003e\u003c/good-vibrations\u003e\n\n\u003ctemplate is=\"dom-if\" if=\"[[!apiSupported]]\"\u003e\n  \u003cp\u003eVibration API not supported\u003c/p\u003e\n\u003c/template\u003e\n```\n\n## Development\n\nbrowserSync and eslint support.   \n`eslint` and `eslint --fix` are enabled by default. Edit tasks/config.json to change the default configuration.\n\n1. Install npm dependencies: `npm install`\n2. Launch the component's demo: `npm run serve`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkcmr%2Fgood-vibrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkcmr%2Fgood-vibrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkcmr%2Fgood-vibrations/lists"}