0
点赞
收藏
分享

微信扫一扫

CSS背景过滤器-毛玻璃属性(backdrop-filter)

时光已翩然轻擦 2023-03-07 阅读 67

例如做一个边框特效

CSS背景过滤器-毛玻璃属性(backdrop-filter)_其它

@keyframes huerotate {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rorate(360deg);
}
}
.border{
border-bottom: 1px solid #aaa;
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
border-image: linear-gradient(45deg, gold, deeppink) 1;
clip-path: inset(0px round 10px);
animation: huerotate 6s infinite linear;
backdrop-filter: blur(1px);//毛玻璃属性
filter: hue-rotate(360deg);
}

箴言:因为这些东西是非常简单的。不要抱怨自己学不会,那是因为你没有足够用心。



举报

相关推荐

backdrop-filter

css 中backdrop-filter使用

过滤器filter

Filter过滤器

过滤器-filter

【VUE】过滤器Filter

Vue过滤器filter

0 条评论