about summary refs log tree commit diff
path: root/src/components/ProfileHoverCard/index.web.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-23 21:36:35 +0000
committerGitHub <noreply@github.com>2024-11-23 21:36:35 +0000
commitaa58216b6de09d471fa94d42bd668e61043fc4f2 (patch)
tree008fc68bab80c515b350a214a31a596eb14a3f7d /src/components/ProfileHoverCard/index.web.tsx
parentfdc3f0f17ddedcdac736d2d21c65bc1ea1edbfdc (diff)
downloadvoidsky-aa58216b6de09d471fa94d42bd668e61043fc4f2.tar.zst
Fix jumpy web animation for modal backdrop (#6673)
Diffstat (limited to 'src/components/ProfileHoverCard/index.web.tsx')
-rw-r--r--src/components/ProfileHoverCard/index.web.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx
index 4cda42fdb..3e58ced90 100644
--- a/src/components/ProfileHoverCard/index.web.tsx
+++ b/src/components/ProfileHoverCard/index.web.tsx
@@ -302,8 +302,8 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
   const animationStyle = {
     animation:
       currentState.stage === 'hiding'
-        ? `avatarHoverFadeOut ${HIDE_DURATION}ms both`
-        : `avatarHoverFadeIn ${SHOW_DURATION}ms both`,
+        ? `fadeOut ${HIDE_DURATION}ms both`
+        : `fadeIn ${SHOW_DURATION}ms both`,
   }
 
   return (