css实现高斯模糊效果的tab导航条选项卡效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现高斯模糊效果的tab导航条选项卡效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
.tabs {
--background: #fff;
--width: 300px;
--height: 75px;
--border-radius: var(--height);
background: var(--background);
width: var(--width);
height: var(--height);
position: relative;
border-radius: var(--border-radius);
box-shadow: 0 10px 30px rgba(229, 232, 239, 0.2);
display: flex;
justify-content: space-around;
align-items: center;
padding: 0 15px;
box-sizing: border-box;
}
.tabs label {
-webkit-tap-highlight-color: transparent;
width: 28px;
height: 28px;
cursor: pointer;
position: relative;
display: flex;
justify-content: space-around;
align-items: center;
}
.tabs label .icon {
width: 100%;
height: 100%;
position: relative;
}
.tabs label .icon .detail,
.tabs label .icon .glass,
.tabs label .icon .background {
position: absolute;
width: 100%;
height: 100%;
}
.tabs label .icon .detail {
z-index: 2;
filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0));
transition: filter 0.3s ease;
}
.tabs label .icon .detail::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(to right, #c5ccdc 30%, #96a2be 70%);
transition: background 0.3s ease;
}
.tabs label .icon .glass {
z-index: 1;
}
.tabs label .icon .glass::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #e5e8ef;
-webkit-backdrop-filter: blur(0px);
backdrop-filter: blur(0px);
}
.tabs label .icon .glass::aft.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0