Skip to content

Commit

Permalink
去除打字效果
Browse files Browse the repository at this point in the history
  • Loading branch information
lonely-starry committed Mar 15, 2024
1 parent 43a8897 commit 65b5a72
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/components/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</Icon>
<div class="text">
<p>{{ descriptionText.hello }}</p>
<p class="typewriter">{{ descriptionText.text }}</p>
<p>{{ descriptionText.text }}</p>
</div>
<Icon size="16">
<QuoteRight />
Expand Down Expand Up @@ -186,24 +186,5 @@ watch(
margin-top: 2.5rem;
}
}
.typewriter {
overflow: hidden;
white-space: nowrap;
display: inline-block;
overflow: hidden;
animation: typing 5s steps(100, start) 1;
/* 文字逐个出现 */
}
/* 打字动画 */
@keyframes typing {
from {
width: 0;
}
to {
width: 130%;
}
}
}
</style>

0 comments on commit 65b5a72

Please sign in to comment.