Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

_2024_02_02_19_46_43_723.mp4

How to use?

Load JavaScript and use it by wrapping ripples-element.

<script src = "ripples.js" async></script>
<ripples-element>
  <div>Hello World</div>
</ripples-element>

How to set up?

static option = {
  "spreadDuration": 0.15,                     // 리플 효과가 퍼지는 시간
  "fadeInDuration": 0.05,                     // 리플 효과가 나타나는 시간
  "fadeOutDuration": 0.2,                     // 리플 효과가 끝난 뒤, 사라지는 시간
  "touchDelay": 0.1,                          // 스크롤 동작을 구분하기 위해 기다리는 시간
  "color": "#000000",                         // 리플 효과 색상
  "opacity": 0.5,                             // 리플 효과 불투명도
  "blur": 10,                                 // 리플 효과 흐릿함 정도 (px)
  "lowerScale": 0.2,                          // 시작 시, 진행 상황
  "upperScale": 1,                            // 끝날 시, 진행 상황
  "curve": [0.215, 0.61, 0.355, 1.0]          // 3차원 베지어 곡선
}

About

Using this package, you can easily implement the ripples effect when touching. We also implemented the web ripples effect using web components.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages