悬浮扩展菜单动画效果
代码语言:html
所属分类:菜单导航
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto'>
<link rel='stylesheet' href='https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css'>
<style>
html {
background: url(http://repo.bfw.wiki/bfwrepo/image/5dfc44ff95ffd.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body {
font: 300 14px/18px Roboto
}
*,
:after,
:before {
box-sizing: border-box
}
.clearfix:after,
.clearfix:before {
content: '';
display: table
}
.clearfix:after {
clear: both;
display: block
}
.muck-up {
width: 310px;
height: 545px;
margin: 5em auto;
position: relative;
overflow: hidden;
}
.overlay {
background: url(http://repo.bfw.wiki/bfwrepo/image/5dfc451a92f89.png) no-repeat top /contain;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.overlay:after {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(71, 32, 84, 0.5);
}
.muck-up > .top {
position: relative;
min-height: 240px;
padding: 15px;
color: #fff;
}
.top .nav span {
float: left;
display: block;
}
.nav p {
margin-top: 2px;
display: inline-block;
float: left;
vertical-align: bottom;
}
.ion-android-menu {
font-size: 24px;
margin-right: 17px;
}
.nav .ion-ios-more-outline {
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0