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() { #item2 { margin-left: 20px; } } </style> </head> <body> <div class="app"> <svg class="menu" id="menu" width="172.5" height="242.5" viewBox="-15 -15 190 260"> <symbol id="icon-2" viewBox="0 0 35 35"> <path fill="#BD8590" d="M0.5 31.983c0.268 0.067 0.542-0.088 0.612-0.354 1.030-3.843 5.216-4.839 7.718-5.435 0.627-0.149 1.122-0.267 1.444-0.406 2.85-1.237 3.779-3.227 4.057-4.679 0.034-0.175-0.029-0.355-0.165-0.473-1.484-1.281-2.736-3.204-3.526-5.416-0.022-0.063-0.057-0.121-0.103-0.171-1.045-1.136-1.645-2.337-1.645-3.294 0-0.559 0.211-0.934 0.686-1.217 0.145-0.087 0.236-0.24 0.243-0.408 0.221-5.094 3.849-9.104 8.299-9.13 0.005 0 0.102 0.007 0.107 0.007 4.472 0.062 8.077 4.158 8.206 9.324 0.004 0.143 0.068 0.277 0.178 0.369 0.313 0.265 0.459 0.601 0.459 1.057 0 0.801-0.427 1.786-1.201 2.772-0.037 0.047-0.065 0.101-0.084 0.158-0.8 2.536-2.236 4.775-3.938 6.145-0.144 0.116-0.212 0.302-0.178 0.483 0.278 1.451 1.207 3.44 4.057 4.679 0.337 0.146 0.86 0.26 1.523 0.403 2.477 0.536 6.622 1.435 7.639 5.232 0.060 0.223 0.262 0.37 0.482 0.37 0.043 0 0.086-0.006 0.13-0.017 0.267-0.072 0.425-0.346 0.354-0.613-1.175-4.387-5.871-5.404-8.393-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0