Fix jumpy web animation for modal backdrop (#6673)

This commit is contained in:
dan
2024-11-23 21:36:35 +00:00
committed by GitHub
parent fdc3f0f17d
commit aa58216b6d
3 changed files with 31 additions and 20 deletions
@@ -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 (