Merge pull request #95 from ChrisClaude/master

Updated button ripple effect
pull/139/head
Brad Traversy 3 years ago committed by GitHub
commit f93c1fe5db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,8 +2,8 @@ const buttons = document.querySelectorAll('.ripple')
buttons.forEach(button => {
button.addEventListener('click', function (e) {
const x = e.clientX
const y = e.clientY
const x = e.pageX
const y = e.pageY
const buttonTop = e.target.offsetTop
const buttonLeft = e.target.offsetLeft

Loading…
Cancel
Save