CSS .ripple { position: relative; overflow: hidden; } .ripple .rp-effect {/*エフェクト*/ position: absolute; border-radius: 50%; opacity: 0.35;/*波紋の濃さ*/ transform: scale(0); background: #FFF;/*波紋色*/ animation: ripple 700ms; pointer-events: none; } @-webkit-keyframes ripple { to { opacity: 0; transform: scale(2.0); } } @keyframes ripple { to { opacity: 0; transform: scale(2.0); } } Javascript (function(
![波紋が広がるリップルエフェクトボタンの作り方(CSS・Javascript)](https://cdn-ak-scissors.b.st-hatena.com/image/square/a0be45a822c2c4d8c8ce22f60872c260d1d05fc9/height=288;version=1;width=512/https%3A%2F%2Fsaruwakakun.com%2Fwp-content%2Fuploads%2F2017%2F03%2Fdagaga.png)