gpt4 book ai didi

css - 在动画完成之前文本是模糊的?

转载 作者:行者123 更新时间:2023-11-28 00:07:14 49 4
gpt4 key购买 nike

我有一个文字动画,很模糊,看起来很难看。

.text{
animation: move 2s ease-in;
position: relative;

/* Added for demo purpose */
animation-iteration-count: infinite;
}

@keyframes move {
0% {
right: -4em;
opacity: 0;
}
80% {
right: 0.2em;
opacity: 1;
}
100% {
right: 0em;
}
}
<span class="text">Text</span>

我用的是 chrome!

我怎样才能让那个模糊消失?谢谢!

最佳答案

试试这个:

.text{
animation: move 2s ease-in;
position: relative;
display: inline-block;
width: 100%;
overflow: hidden
}
@keyframes move {
0% {
transform: translateX(15%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
<div class="text">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

</div>

关于css - 在动画完成之前文本是模糊的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55631033/

49 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com