jquery实现拖动圆圈旋钮触控按钮效果代码
代码语言:html
所属分类:拖放
代码描述:jquery实现拖动圆圈旋钮触控按钮效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
}
body {
background: #111;
}
.dial {
position: absolute;
width: 350px;
height: 350px;
display: block;
top: 50%;
margin-top: -175px;
left: 50%;
margin-left: -175px;
cursor: pointer;
}
.dial .wrapper {
position: absolute;
width: 300px;
height: 300px;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -150px;
border-radius: 300px;
cursor: pointer;
background: linear-gradient(-45deg, #171717 0%, #272727 100%);
box-shadow: inset 0px 1px 1px 0px #999, 0px 0px 0px 4px black;
}
.dial .knob {
position: absolute;
width: 300px;
height: 300px;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -150px;
border-radius: 300px;
cursor: pointer;
-webkit-user-select: none;
}
.dial .center {
position: absolute;
background: #c5c8b3;
width: 100px;
height: 100px;
left: 50%;
top: 50%;
border: 6px solid #1b1c1a;
margin-left: -56px;
margin-top: -56px;
border-radius: 300px;
color: white;
z-index: 1;
-webkit-user-select: none;
box-shadow: 0px 0px 2px 2px rgba(255, 255, 255, 0.08), inset 0px 0px 10px 4px #6a6c60;
}
.dial .center span {
position: relative;
display: block;
top: 40px;
width: 100px;
text-align: center;
font-size: 24px;
color: #4.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0