js+css实现圆球内可拖动图标点击弹出二级菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:js结合css实现一个紫色圆球内可拖动图标点击弹出二级菜单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
html, body {
padding: 0px;
margin: 0px;
background: #222;
font-family: 'Karla', sans-serif;
color: #FFF;
height: 100%;
}
body {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
overflow: hidden;
}
.info {
position: fixed;
top: 20px;
left: 20px;
}
.container {
border-radius: 100%;
width: 400px;
height: 400px;
overflow:hidden;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
margin: auto;
position: relative;
border: 10px solid #000;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), inset 0px 0px 10px rgba(0, 0, 0, 0.5);
background: #A700DD;
display:-webkit-box;
display:-ms-flexbox;
display:flex;
-webkit-animation:flyin 2s;
animation:flyin 2s;
}
.container .help {
position: absolute;
top: -40px;
left: 0px;
width: 100%;
text-align: center;
}
.container .plane {
position: absolute;
top: 0px;
left: 0px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0