0.4.4 • Published 5 years ago

lipper v0.4.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

lipper

light weight ripple library

Demo

Demo

Usage

  • script
<!doctype html>
<html>
  <body>
    <button id='btn'>Button Container</button>
    <scirpt src='./lipper.min.js'></scirpt>
    <scirpt>
      lipper.init({selector: ['button', '.container']})
    </scirpt>
  </body>
</html>
  • ES6
import lipper from 'lipper'
lipper.init({
  selector: ['button', '.container']
})

API

  • lipper.init(option): Initialization
  • lipper.put(option): Set parameters. Same as init
  • lipper.reset(): Reset default option
  • lipper.destroy(): Remove event listener

option

parameter namedefault valueRequireddetail
selector--yesCSS selector. String or string array.
duration1.5noDuration. The unit is second.
radius50noDiffusion radius. The unit is px
colorrgba(250, 250, 250, .5)noThe color of lipper
centerfalsenoWhether lipper in the container
overflowfalsenoWhether to continue lipper outside the container
zindex1000noz-index value
0.4.4

5 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago