{"id":13424068,"url":"https://github.com/BosNaufal/vue-ripple","last_synced_at":"2025-03-15T18:33:22.434Z","repository":{"id":71822523,"uuid":"58217266","full_name":"BosNaufal/vue-ripple","owner":"BosNaufal","description":"Vue Component to Make Google Material Design Ripple Effect. http://bosnaufal.github.io/vue-ripple/ ","archived":false,"fork":false,"pushed_at":"2017-07-15T10:03:13.000Z","size":47,"stargazers_count":47,"open_issues_count":1,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-21T11:53:53.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/BosNaufal.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}},"created_at":"2016-05-06T15:37:27.000Z","updated_at":"2024-09-16T10:23:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2610c15-82a9-4343-a187-e36444e7596c","html_url":"https://github.com/BosNaufal/vue-ripple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BosNaufal%2Fvue-ripple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BosNaufal%2Fvue-ripple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BosNaufal%2Fvue-ripple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BosNaufal%2Fvue-ripple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BosNaufal","download_url":"https://codeload.github.com/BosNaufal/vue-ripple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221593490,"owners_count":16849127,"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":[],"created_at":"2024-07-31T00:00:47.926Z","updated_at":"2024-10-26T22:32:38.029Z","avatar_url":"https://github.com/BosNaufal.png","language":"Vue","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","Vue","UI组件","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins","Components"],"readme":"# Vue Ripple\n[Vue](http://vuejs.org/) Component to Make Google Material Design Ripple Effect. It's adopted from [angular-ripple](https://github.com/nelsoncash/angular-ripple)\n\n[DEMO](https://bosnaufal.github.io/vue-ripple)\n\n## Install\nYou can import [vue-ripple](./src/js/components/index.js) to your vue component file like [this](./src/js/components/app.js) and process it with your preprocessor.;\n\n\nYou can install it via NPM\n```bash\nnpm install vue-ripple\n```\n\n\n## Usage\nUsage With Predefined Ripple Button\n```html\n\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cripple-button\u003e Click On Me! \u003c/ripple-button\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n\n  import { rippleButton } from './index.js';\n\n  export default {\n    components: { rippleButton }\n  };\n\n\u003c/script\u003e\n```\n\nUsage Standalone Ripple Component\n```html\n\u003ctemplate\u003e\n  \u003cbutton\n    class=\"Ripple-parent\"\n    @mouseup=\"handleClick\"\n    @touchend=\"handleClick\"\u003e\n      Click On Me!\n      \u003cripple v-bind:cursor-pos=\"cursorPos\"\u003e\u003c/ripple\u003e\n  \u003c/button\u003e\n\u003c/template\u003e\n\n\n\u003cscript\u003e\n\n  import { ripple } from 'vue-ripple';\n\n  export default {\n\n    data(){\n      return{\n        cursorPos: {}\n      }\n    },\n\n    components: { ripple },\n\n    methods: {\n      handleClick(e){\n        // Get Cursor Position\n        this.cursorPos = {\n          top: e.clientY,\n          left: e.clientX\n        }\n      }\n    }\n\n  };\n\n\u003c/script\u003e\n```\n\n## Props\n##### cursorPos (Object)\nYou need to describe the cursor position ( when parent is clicked ) with the structure like the object bellow\n```javascript\nlet cursorPos = {\n  top: e.clientY,\n  left: e.clientX\n}\n```\n\n## Thank You for Making this useful~\n\n## Let's talk about some projects with me\nJust Contact Me At:\n- Email: [bosnaufalemail@gmail.com](mailto:bosnaufalemail@gmail.com)\n- Skype Id: bosnaufal254\n- twitter: [@BosNaufal](https://twitter.com/BosNaufal)\n\n## License\n[MIT](http://opensource.org/licenses/MIT)\nCopyright (c) 2016 - forever Naufal Rabbani\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBosNaufal%2Fvue-ripple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBosNaufal%2Fvue-ripple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBosNaufal%2Fvue-ripple/lists"}