css实现暗色聚光灯式导航条导航栏tab切换效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现暗色聚光灯式导航条导航栏tab切换效果代码
代码标签: css 暗色 聚光灯 导航条 导航栏 tab 切换
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap'>
<style>
.tabbar {
--icon-active:#275EFE;
--icon-inactive:#6C7486;
--icon-hover:#99A3BA;
--text:#E4ECFA;
--circle:#E4ECFA;
--background:#171C28;
--shadow:rgba(18,22,33,.1);
border-radius:0 0 12px 12px;
background:var(--background);
width:240px;
height:64px;
padding:0 12px;
box-shadow:0 8px 16px var(--shadow);
}
.tabbar >div {
display:flex;
height:100%;
position:relative;
}
.tabbar >div label {
flex:0 0 33.33%;
display:flex;
justify-content:center;
align-items:center;
position:relative;
cursor:pointer;
z-index:1;
}
.tabbar >div label svg,.tabbar >div label span {
display:block;
-webkit-backface-visibility:hidden;
transition:opacity 0.4s ease,color 0.4s ease,-.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0