炫酷导航条特效
代码语言:html
所属分类:菜单导航
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Karlo Videk</title>
<style>
@import url("https://fonts.googleapis.com/css?family=Raleway");
body {
font-family: "Raleway", sans-serif;
-webkit-font-smoothing: antialiased;
line-height: 1em;
background-color: #0d0d0d;
color: #ffffff;
overflow: hidden;
}
.u-b6 {
font-family: "Raleway", sans-serif;
margin: 0;
font-size: 10px;
}
.u-b4 {
font-family: "Raleway", sans-serif;
margin: 0;
font-size: 14px;
}
.u-a6 {
margin: 0;
margin-bottom: 0.6em;
font-size: 54px;
}
.u-a7 {
margin: 0;
font-size: 64px;
padding: 60px 60px 0 60px;
}
.c-work {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
overflow: hidden;
}
.c-work__list {
position: relative;
z-index: 2;
margin: 0 auto;
text-align: center;
}
.c-work__item {
display: block;
}
.c-work-item {
position: relative;
display: block;
cursor: pointer;
padding: 25px 0;
}
.c-work-item__number {
position: absolute;
display: inline-block;
right: 100%;
top: 25px;
margin-right: 25px;
pointer-events: none;
transition: all 0.2s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
will-change: transform, opacity;
}
.c-work-item__title {
transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
will-change: transform;
}
.c-work-item__category {
display: inline-block;
transition: all 0.2s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
will-change: transform;
}
.c-work-item__category i {
font-style: normal;
display: inline-block;
margin-right: 8px;
}
.c-work-item:hover .c-work-item__title {
transform: translateX(10px);
}
.c-work-item:hover .c-work-item__number {
opacity: 0;
transform: translateX(20px);
}
.c-work-item:hover .c-work-item__category {
transform: translateX(10px);
}
.c-work-preview {
position: fixed;
width: 100%;
height: 100vh;
top: 0;
ri.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0