jquery.ui.touch-punch+TweenMax实现橡胶弹性滑动价格区间范围选择取值器代码
代码语言:html
所属分类:表单美化
代码描述:jquery.ui.touch-punch+TweenMax实现橡胶弹性滑动价格区间范围选择取值器代码,拖动圆点进行选择。
代码标签: TweenMax 橡胶 弹性 滑动 价格 区间 范围 选择 取值器
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap'> <style> body.ui-slider-active { cursor: -webkit-grabbing; cursor: grabbing; } .box { --primary: #275efe; --headline: #3F4656; --text: #99A3BA; width: 100%; max-width: 312px; padding: 36px 32px 48px 32px; background: #fff; border-radius: 9px; box-shadow: 0 1px 4px rgba(18, 22, 33, 0.12); } .box h3 { font-family: inherit; font-size: 32px; font-weight: 700; margin: 0 0 20px 0; color: var(--headline); } .box h3 span { font-weight: 500; } .box .values div, .box small div { display: inline-block; vertical-align: top; } .box .values { margin: 0; font-weight: 500; color: var(--primary); } .box .values > div:first-child { margin-right: 2px; } .box .values > div:last-child { margin-left: 2px; } .box small { color: var(--text); display: block; margin-top: 8px; font-size: 14px; } .box .slider { margin-top: 40px; } .slider { --primary: #275efe; --handle: #fff; --handle-active: #becfff; --handle-hover: #e9efff; --handle-border: 2px solid var(--primary); --line: #cdd9ed; --line-active: var(--primary); height: 23px; width: 100%; position: relative; pointer-events: none; } .slider .ui-slider-handle { --y: 0; --background: var(--handle); cursor: -webkit-grab; cursor: grab; -webkit-tap-highlight-color: transparent; top: 0; width: 23px; height: 23px; transform: translateX(-50%); position: absolute; outline: none;.........完整代码请登录后点击上方下载按钮下载查看
网友评论0