Skip to content

Commit 670355e

Browse files
author
Simon he
committed
chore: update vivid-typing
1 parent 124e018 commit 670355e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ function finish() {
1717
content.value = contentList[index.value];
1818
}, 500);
1919
}
20+
21+
function styleFn(i) {
22+
return `color:rgb(${Math.random() * 255},${Math.random() * 255}, ${
23+
Math.random() * 255
24+
});animation-delay:${i * 0.1}s;`;
25+
}
2026
</script>
2127

2228
<template>
@@ -46,6 +52,8 @@ function finish() {
4652
:speed="1"
4753
m-t-2
4854
style="box-shadow: 0 0 10px rgba(255, 255, 255, 0.5)"
55+
:spilt-style="styleFn"
56+
spiltTag="span"
4957
:finish="finish"
5058
></vivid-typing>
5159
</main>

0 commit comments

Comments
 (0)