{"id":16641804,"url":"https://github.com/samthor/ripplejs","last_synced_at":"2025-04-07T07:16:44.196Z","repository":{"id":57390707,"uuid":"27975513","full_name":"samthor/rippleJS","owner":"samthor","description":"vanilla Material Design ripples","archived":false,"fork":false,"pushed_at":"2018-09-22T14:52:37.000Z","size":301,"stargazers_count":192,"open_issues_count":5,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T05:08:11.424Z","etag":null,"topics":["javascript","material-design","ripple"],"latest_commit_sha":null,"homepage":"https://samthor.github.io/rippleJS","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/samthor.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}},"created_at":"2014-12-13T22:16:01.000Z","updated_at":"2025-02-21T11:38:32.000Z","dependencies_parsed_at":"2022-08-30T20:01:24.360Z","dependency_job_id":null,"html_url":"https://github.com/samthor/rippleJS","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2FrippleJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2FrippleJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2FrippleJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samthor%2FrippleJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samthor","download_url":"https://codeload.github.com/samthor/rippleJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608154,"owners_count":20965952,"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":["javascript","material-design","ripple"],"created_at":"2024-10-12T07:47:56.582Z","updated_at":"2025-04-07T07:16:44.140Z","avatar_url":"https://github.com/samthor.png","language":"JavaScript","readme":"# rippleJS\n\nAdds Material Design-style feedback ripples to your existing HTML without any dependencies.\n[Show me the demos!](http://samthor.github.io/rippleJS)\n\n## Usage\n\nInclude the [rippleJS script](https://cdn.rawgit.com/samthor/rippleJS/v1.0.2/ripple.min.js) (or use a [local copy](#install)).\nThen, add elements with the `rippleJS` class within a parent element that has layout (aka, `position: relative` or `position: absolute`).\n\n```html\n\u003cbutton class=\"yourButton\"\u003e\n  Click Me\n  \u003cdiv class=\"rippleJS\"\u003e\u003c/div\u003e\n\u003c/button\u003e\n\n\u003cscript async src=\"https://cdn.jsdelivr.net/npm/vanilla-ripplejs@1.0.6\"\n    integrity=\"sha384-OlarGErerEgz/M7123pQTTek4pUIiR6t0BK09bTmWDi2cZYbv3VHrriaXDnA0Oup\"\n    crossorigin=\"anonymous\"\u003e\u003c/script\u003e\n\u003c!-- or if using ES6 modules --\u003e\n\u003cscript type=\"module\"\u003e\n  import 'https://cdn.jsdelivr.net/npm/vanilla-ripplejs@1.0.6';\n\u003c/script\u003e\n```\n\nrippleJS adds handlers on `document.body`, so you don't need to register any new elements as you add them to the DOM.\nIt supports touch and mouse events (even at the same time), and includes its own CSS.\n\n### Ripple Fill\n\nBy adding the `fill` class to a `rippleJS` element, the ripple will fill to rounded corners, good for form elements with fixed size.\nFor example:\n\n```html\n\u003cdiv class=\"optHolder\"\u003e\n  \u003cinput type=\"checkbox\" /\u003e\n  \u003cdiv class=\"rippleJS fill\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n### Ripple Color\n\nThe default color is a transparent version of the current color (aka, the `currentColor` [keyword](http://www.w3.org/TR/css3-color/#currentcolor)).\nTo change this default, add the following style rule:\n\n```css\n.rippleJS .ripple {\n  background: red;\n}\n```\n\nYou could also change it just for some elements:\n\n```css\n.yourClassName .rippleJS .ripple {\n  background: blue;\n}\n```\n\nOr change the level of opacity:\n\n```css\n.moreOpaque .rippleJS .ripple {\n  opacity: 0.65;\n}\n````\n\n## Supports\n\nChrome, Safari, Firefox (all as of Dec 2014).\nRequires `classList`, so probably [only supports IE10+](http://caniuse.com/#feat=classlist).\n\n## Install \n\nInstead of using rippleJS directly, you can fetch it using your favourite package manager:\n\n    $ bower install vanilla-ripplejs\n    $ npm install vanilla-ripplejs\n\nYou can either use `ripple.min.js` for a precompiled version to just drop into your site, or you could use `lib.js` included as a ES module.\nIf you use `lib.js`, you'll need to include the CSS too—check out `ripple.js` for how this is done for the minified version, or you could just add the CSS to your regular styles.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamthor%2Fripplejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamthor%2Fripplejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamthor%2Fripplejs/lists"}