We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12fe75 commit da978bdCopy full SHA for da978bd
components/FancyArrow.vue
@@ -143,9 +143,11 @@ const { arrowSvg, textPosition } = useRoughArrow({
143
left: `${textPosition.x}px`,
144
top: `${textPosition.y}px`,
145
transform: 'translate(-50%, -50%)',
146
- animationDuration: `${props.animationDuration ?? DEFAULT_ANIMATION_DURATION}ms`,
147
- animationDelay: `${props.animationDelay ?? 0}ms`,
148
- visibility: animationEnabled ? 'hidden' : 'visible',
+ ...(animationEnabled && {
+ animationDuration: `${props.animationDuration ?? DEFAULT_ANIMATION_DURATION}ms`,
+ animationDelay: `${props.animationDelay ?? 0}ms`,
149
+ visibility: 'hidden',
150
+ }),
151
}"
152
>
153
<slot />
0 commit comments