svg实现悬浮伸缩圆圈导航菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:svg实现悬浮伸缩圆圈导航菜单效果代码

代码标签: 伸缩 圆圈 导航 菜单 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

<link href='https://fonts.googleapis.com/css?family=Josefin+Sans:400,600,700,600italic' rel='stylesheet' type='text/css'>

  
  
<style>
/*----------------------------------
looks best full screen: 
https://codepen.io/sdras/full/Kwjyzo/
-----------------------------------*/
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 760px;
  height: 100vh;
  background: url("//repo.bfw.wiki/bfwrepo/image/5ffa44b01145d.png") no-repeat center center;
  background-size: cover;
  font-family: "Josefin Sans", sans-serif;
  color: #fff;
}

.app {
  width: 400px;
  height: 700px;
  position: absolute;
  left: 50%;
  margin-left: -200px;
  margin-top: 20px;
  background: url("//repo.bfw.wiki/bfwrepo/image/5ffa44c442364.png") top center no-repeat #333c4d;
}

.menu {
  float: right;
  margin-top: 140px;
}

#itemsContainer, .line-draw, .big-circle, #x-replace {
  visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000;
  z-index: 1;
}

#menu1, #menu2, #menu3 {
  -webkit-backface-visibility: hidden;
  perspective: 1000;
  z-index: 1;
  cursor: pointer;
}

#trigger {
  cursor: pointer;
}

.text {
  margin-top: 355px;
  width: 80%;
  margin-left: 10%;
  color: #f9f7eb;
}
.text h2 {
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.text p {
  padding-top: 5px;
  line-height: 1.4em;
  font-size: 17px;
  letter-spacing: 0.025em;
}

footer {
  bottom: 0;
  position: absolute;
  width: 100%;
  height: 60px;
  background: #1d0829;
}

.arrow-left {
  margin-top: 15px;
  margin-left: 15px;
}

.arrow-right {
  float: right;
  margin-top: 15px;
  margin-right: 15px;
}

@-moz-document url-prefix() {
  #item.........完整代码请登录后点击上方下载按钮下载查看

网友评论0