Skip to content

Commit da978bd

Browse files
committed
fix
1 parent f12fe75 commit da978bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/FancyArrow.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ const { arrowSvg, textPosition } = useRoughArrow({
143143
left: `${textPosition.x}px`,
144144
top: `${textPosition.y}px`,
145145
transform: 'translate(-50%, -50%)',
146-
animationDuration: `${props.animationDuration ?? DEFAULT_ANIMATION_DURATION}ms`,
147-
animationDelay: `${props.animationDelay ?? 0}ms`,
148-
visibility: animationEnabled ? 'hidden' : 'visible',
146+
...(animationEnabled && {
147+
animationDuration: `${props.animationDuration ?? DEFAULT_ANIMATION_DURATION}ms`,
148+
animationDelay: `${props.animationDelay ?? 0}ms`,
149+
visibility: 'hidden',
150+
}),
149151
}"
150152
>
151153
<slot />

0 commit comments

Comments
 (0)