Flask接口签名sign原理与实例代码浅析
209
2023-06-08
SVG描边动画
效果如下:
代码如下:
.nubia_logo{
position: absolute;
opacity: 0;
animation:fadeIn 2s ease-in forwards;
-webkit-animation:fadeIn 2s ease-in forwards;
top: 50%;
-ms-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
left: 50%;
margin-left: -500px;
}
#nubia{
position: absolute;
z-index: 1;
stroke-dasharray: 2000;
stroke-dashoffset: 2000;
animation: describe 4s forwards;
-webkit-animation: describe 4s forwards;
top: 50%;
-ms-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
left: 50%;
margin-left: -500px;
}
@keyframes fadeIn{
from{opacity: 0;}
80%{opacity: 0.5;}
to{opacity:1;}
}
@-webkit-keyframes fadeIn{
from{opacity: 0;}
80%{opacity: 0.5;}
to{opacity:1;}
}
@keyframes describe{
from{
stroke-dashoffset: 2000;
opacity: 1;
}
to{
stroke-dashoffset: 0;
opacity: 0;
}
}
@-webkit-keyframes describe{
from{
stroke-dashoffset: 2000;
opacity: 1;
}
to{
stroke-dashoffset: 0;
opacity: 0;
}
}
width="1000px" height="150px" viewBox="0 0 1000 149.452" enable-background="new 0 0 1000 149.452" xml:space="preserve" class="nubia_logo">
width="1000px" height="150px" viewBox="0 0 1000 149.452" enable-background="new 0 0 1000 149.452" xml:space="preserve">
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~