HTML 发光线条,CSS3 线条发光效应实验

编程入门 行业动态 更新时间:2024-10-22 23:31:58

HTML 发光<a href=https://www.elefans.com/category/jswz/34/1760515.html style=线条,CSS3 线条发光效应实验"/>

HTML 发光线条,CSS3 线条发光效应实验

CSS

语言:

CSSSCSS

确定

html {

height: 100%;

background: -webkit-linear-gradient(#813b97, #463c96);

background: linear-gradient(#813b97, #463c96);

}

@-webkit-keyframes progress1 {

0% {

-webkit-transform: scalex(0);

transform: scalex(0);

opacity: 0.5;

}

}

@keyframes progress1 {

0% {

-webkit-transform: scalex(0);

transform: scalex(0);

opacity: 0.5;

}

}

@-webkit-keyframes progress2 {

0% {

-webkit-transform: scale(0.3, 0.8) translatez(0);

transform: scale(0.3, 0.8) translatez(0);

opacity: 0.1;

}

100% {

-webkit-transform: scale(1, 1) translatex(200px) translatez(0);

transform: scale(1, 1) translatex(200px) translatez(0);

opacity: 1;

}

}

@keyframes progress2 {

0% {

-webkit-transform: scale(0.3, 0.8) translatez(0);

transform: scale(0.3, 0.8) translatez(0);

opacity: 0.1;

}

100% {

-webkit-transform: scale(1, 1) translatex(200px) translatez(0);

transform: scale(1, 1) translatex(200px) translatez(0);

opacity: 1;

}

}

.line {

position: absolute;

top: 50%;

width: 300px;

left: 50%;

margin-left: -150px;

height: 3px;

background: rgba(255, 255, 255, 0.1);

}

.line:before {

-webkit-animation: progress1 4s infinite;

animation: progress1 4s infinite;

-webkit-transform-origin: 0 0;

-ms-transform-origin: 0 0;

transform-origin: 0 0;

content: "";

display: block;

width: 200px;

height: 100%;

background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.9));

background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.9));

}

.line:after {

content: "";

position: absolute;

-webkit-animation: progress2 4s infinite;

animation: progress2 4s infinite;

-webkit-transform-origin: 90% 50%;

-ms-transform-origin: 90% 50%;

transform-origin: 90% 50%;

margin-left: -24px;

top: -9px;

width: 30px;

height: 21px;

border-radius: 10%;

background: rgba(210, 189, 255, 0.55);

-webkit-filter: blur(8px);

filter: blur(8px);

box-shadow: 0 0 10px 6px rgba(210, 189, 255, 0.4), -20px 0 15px 4px rgba(210, 189, 255, 0.3), -40px 0 15px 2px rgba(210, 189, 255, 0.2), -60px 0 10px 1px rgba(210, 189, 255, 0.1), -80px 0 10px 1px rgba(210, 189, 255, 0.05);

}

更多推荐

HTML 发光线条,CSS3 线条发光效应实验

本文发布于:2024-03-06 01:51:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1714042.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:线条   效应   HTML

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!