Skip to content

Commit

Permalink
fix(VRipple): no animation on mobile
Browse files Browse the repository at this point in the history
fixes #12288
  • Loading branch information
Jesse205 committed Aug 21, 2024
1 parent 7e9a1b7 commit e084524
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/vuetify/src/directives/ripple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ const ripples = {
transform(animation, `translate(${x}, ${y}) scale3d(${scale},${scale},${scale})`)
animation.dataset.activated = String(performance.now())

setTimeout(() => {
animation.classList.remove('v-ripple__animation--enter')
animation.classList.add('v-ripple__animation--in')
transform(animation, `translate(${centerX}, ${centerY}) scale3d(1,1,1)`)
}, 0)
requestAnimationFrame(() => {
requestAnimationFrame(() => {
animation.classList.remove('v-ripple__animation--enter')
animation.classList.add('v-ripple__animation--in')
transform(animation, `translate(${centerX}, ${centerY}) scale3d(1,1,1)`)
})
})
},

hide (el: HTMLElement | null) {
Expand Down

0 comments on commit e084524

Please sign in to comment.