js实现悬浮旋转圆环弹出菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:js实现悬浮旋转圆环弹出菜单效果代码

代码标签: js 菜单 圆环 悬浮

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

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
    @charset "utf-8";body {   background: white url("//repo.bfw.wiki/bfwrepo/image/60dd75673abe6.png") no-repeat fixed;  background-size: cover;}a {  font-size: 14px;  text-decoration: none;  outline: 0;}.circle,.ring {  height: 256px;  position: relative;  width: 256px;}.circle {  margin: 0 auto;}.ring {  background-color: rgba(0,0,0,0.5);  border-radius: 50%;  opacity: 0;  -webkit-transform-origin: 50% 50%;  -moz-transform-origin: 50% 50%;  transform-origin: 50% 50%;  -webkit-transform: scale(0.1) rotate(-270deg);  -moz-transform: scale(0.1) rotate(-270deg);  -transform: scale(0.1) rotate(-270deg);  -webkit-transition: all 0.4s ease-out;  -moz-transition: all 0.4s ease-out;  transition: all 0.4s ease-out;}.open .ring {  opacity: 1;    -webkit-transform: scale(1) rotate(0);  -moz-transform: scale(1) rotate(0);  -transform: scale(1) rotate(0);}.center {  background-color: rgba(255,255,255,0.3);  border-radius: 50%;  border: 2px solid #ffffff;  bottom: 0;  color: white;  height: 80px;  left: 0;  line-height: 80px;  margin: auto;  position: absolute;  right: 0;  text-align: center;  top: 0;  width: 80px;    -webkit-transition: all 0.4s ease-out;  -moz-transition: all 0.4s ease-out;  transition: all 0.4s ease-out;}.open .center {  border-color: #aaaaaa;}.menuItem {  border-radius: 50%;  color: #eeeeee;  display: block;  height: 40px;  line-height: 40px;  margin-left: -20.........完整代码请登录后点击上方下载按钮下载查看

网友评论0