Skip to content
forked from fiws/fi-ripple

Performant ripples for vue or plain js

Notifications You must be signed in to change notification settings

00mjk/fi-ripple

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fi-ripple

Usage

Install with npm install fi-ripple.

You will also need to install dom4 if you want IE 10/11 support.

With Vue

import 'dom4'; // for IE 10 support – import it once in your app entry
import Ripple from '../fi-ripple.js'; // import the library

export default {
  directives: {
    Ripple,
  },
}

Now you can use the directive in your component template:

<button v-ripple>Click me</button>

With plain JS

// import the Ripple constructor
import { FiRipple } from 'fi-ripple';

const rippleContainer = document.getElementById('test');
// listen for clicks inside the given container
new FiRipple(rippleContainer);

About

Performant ripples for vue or plain js

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.8%
  • CSS 12.2%