Skip to content

Commit 07dabef

Browse files
committed
fix
1 parent da978bd commit 07dabef

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

components/FancyArrow.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ const { arrowSvg, textPosition } = useRoughArrow({
114114
: undefined,
115115
}
116116
: undefined,
117-
strokeAnimationClass: "rough-arrow-stroke",
118-
fillAnimationClass: "rough-arrow-fill",
117+
strokeAnimationClass: "animated-rough-arrow-stroke",
118+
fillAnimationClass: "animated-rough-arrow-fill",
119119
});
120120
</script>
121121

@@ -137,7 +137,7 @@ const { arrowSvg, textPosition } = useRoughArrow({
137137
</svg>
138138
<div
139139
v-if="$slots.default && textPosition"
140-
class="rough-arrow-content"
140+
:class="{ 'animated-rough-arrow-content': animationEnabled }"
141141
:style="{
142142
position: 'absolute',
143143
left: `${textPosition.x}px`,
@@ -189,22 +189,22 @@ const { arrowSvg, textPosition } = useRoughArrow({
189189
}
190190
}
191191
192-
.rough-arrow-stroke {
192+
.animated-rough-arrow-stroke {
193193
animation: rough-arrow-dash ease-out forwards;
194194
}
195-
.rough-arrow-fill {
195+
.animated-rough-arrow-fill {
196196
animation: rough-arrow-fill ease-out forwards;
197197
}
198-
.rough-arrow-content {
198+
.animated-rough-arrow-content {
199199
animation: rough-arrow-content ease-out forwards;
200200
}
201-
.slidev-vclick-target.slidev-vclick-hidden .rough-arrow-stroke {
201+
.slidev-vclick-target.slidev-vclick-hidden .animated-rough-arrow-stroke {
202202
animation: none;
203203
}
204-
.slidev-vclick-target.slidev-vclick-hidden .rough-arrow-fill {
204+
.slidev-vclick-target.slidev-vclick-hidden .animated-rough-arrow-fill {
205205
animation: none;
206206
}
207-
.slidev-vclick-target.slidev-vclick-hidden .rough-arrow-content {
207+
.slidev-vclick-target.slidev-vclick-hidden .animated-rough-arrow-content {
208208
animation: none;
209209
}
210210
</style>

0 commit comments

Comments
 (0)