js+css实现带刻度发光科技感拖动range取值器代码
代码语言:html
所属分类:拖放
代码描述:js+css实现带刻度发光科技感拖动range取值器代码
代码标签: js css 刻度 发光 科技感 拖动 range 取值器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> * { box-sizing: border-box; } html, body { height: 100%; } .container { height: 100vh; align-items: center; /* background: url("https://assets.codepen.io/4323554/wp1835381-batman-arkham-knight-wallpapers.jpg") #243747 no-repeat center center fixed;*/ background: #243747 no-repeat center center fixed; background-size: cover; color: white; display: flex; flex-direction: column; font-family: "rift", sans-serif; font-size: 24px; font-weight: 600; justify-content: center; } label { display: block; margin-bottom: 4px; } .range-control { align-items: center; background: radial-gradient(60% 17% at 50% -2%, #96dded 0%, transparent 100%) no-repeat, 0px 0px/75% 100%, radial-gradient(60% 17% at 50% 102%, #96dded 0%, transparent 100%) no-repeat, 0px 0px/75% 100%, linear-gradient(rgba(94, 100, 111, 0.25) 3px, transparent 3px) 8px 4px/16px 16px, linear-gradient(to right, rgba(94, 100, 111, 0.25) 3px, transparent 3px) 8px 4px/16px 16px, rgba(43, 44, 43, 0.75); border-bottom: 2px solid #b0e5fb; border-top: 2px solid #b0e5fb; display: flex; height: 45px; justify-content: space-between; padding-left: 8px; position: relative; } .range-control:before, .range-control:after { background-color: rgba(255, 255, 255, 0.7); content: ""; height: 41px; position: absolute; width: 2px; } .range-control:before { left: 0; top: 0; } .range-control:after { right: 0; top: 0; } .range-control .range-slider-container { align-items: center; display: flex; } .range-control .range-slider-container:before, .range-control .range-slider-container:after { background-color: rgba(255, 255, 255, 0.7); content: ""; height: 14px; width: 2px; } .range-control .range-slider-container:before { left: 5px; margin-right: 1px; top: 0; } .range-control .range-slider-container:after { margin-left: 1px; right: 0; top: 0; } .range-control .range-value-container { align-items: center; color: #b0e5fb; display: flex; flex-grow: 1; justify-content: center; min-width: 86px; text-shadow: 0px 0px 15px rgba(37, 222, 232, 0.8); } input[type=range] { -moz-appearance: none; appearance: none; background: transparent; cursor: pointer; transition: opacity 300ms ease-in-out; -webkit-appearance: none; width: 280px; } input[type=range]:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0