react手风琴带文字提示导航照片点击切换效果代码
代码语言:html
所属分类:幻灯片
代码描述:react手风琴带文字提示导航照片点击切换效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/foundation.min.css">
<style>
html, body {
background-color: #222;
width: 100%;
height: 100%;
overflow: hidden;
}
a, h1, h2, h3, h4, h5, h6 {
color: white;
}
a:hover, a:hover > * {
color: grey;
}
.categories--menu-container {
position: relative;
height: 100%;
height: calc(100vh - 150px);
width: 100%;
}
ul.categories {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.category {
position: relative;
}
/*content*/
.category--content {
position: absolute;
top: 50px;
white-space: nowrap;
right: 0;
transform: translateX(100%);
}
.category--content h2 {
text-align: left;
font-size: 44px;
transform: translateX(-50px);
text-transform: uppercase;
font-weight: bold;
}
.category--content .project-list {
padding: 0 0 0 30px;
}
.category--content,
.category--content .project-list,
.category--content .project-list li {
text-align: left;
}
.category--name {
position: absolute;
white-space: nowrap;
width: calc(100% - 5px);
transition: all 0.5s ease;
padding-top: 5px;
margin-top: 15px;
margin-right: 5px;
border-top: 1px solid #666;
color: #666;
}
.category--name h6 {
font-size: 16px;
color: inherit;
text-transform: capitalize;
}
.focused .category--name {
opacity: 0;
}
.projectlist--client {
font-size: 18px;
margin-bottom: 0px;
-webkit-text-stroke: 0;
text-transform: capitalize;
font-weight: bold;
}
.projectlist--byline {
font-size: 12px;
font-family: "Nothing You Could Do", sans-serif;
}
/*last item content*/
.isLast .category--content {
right: initial;
left: 0;
transform: translateX(-100%);
}
.isLast .category--content h2 {
transform: translateX(50px);
text-align: right;
}
.isLast .category--content .project-list {
padding: 0 30px 0 0;
}
.isLast .category--content,
.isLast .category--content .project-list,
.isLast .category--content .project-l.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0