css实现炫酷图标菜单导航效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现炫酷图标菜单导航效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: radial-gradient(circle at 50% 50%, #192233 20%, #000);
background-image: radial-gradient(circle at top right, rgb(36, 9, 119) 0%, rgb(36, 9, 119) 48%,rgb(72, 7, 149) 48%, rgb(72, 7, 149) 53%,rgb(109, 5, 178) 53%, rgb(109, 5, 178) 56%,rgb(145, 2, 208) 56%, rgb(145, 2, 208) 69%,rgb(181, 0, 237) 69%, rgb(181, 0, 237) 100%);
}
.main {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 188px;
height: 188px;
background-color: rgb(255 255 255 / 21%);
border-radius: 10px;
backdrop-filter: blur(6px);
border: 1px solid rgb(255 255 255 / 18%);
box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}
.main .navigation {
position: relative;
width: 40px;
height: 40px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: 0.5s;
}
.main .navigation span {
position: absolute;
width: 7px;
height: 7px;
background: #fff;
transform: translate(calc(14px * var(--x)), calc(14px * var(--y)));
transition: transform 0.5s, width 0.5s, height 0.5s, background 0.5s;
transition-delay: calc(0.1s * var(--i));
display: flex;
justify-content: center;
align-items: center;
}
.main .navigation.active span {
width: 45px;
height: 45px;
b.........完整代码请登录后点击上方下载按钮下载查看
网友评论0