卡通动态滑动取值块效果
代码语言:html
所属分类:表单美化
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>CodePen - Rolling Range Slider</title> <style> html, body { margin: 0; height: 100%; } body { display: flex; justify-content: center; align-items: center; background-color: #a9cbee; } input[type="range"] { -webkit-appearance: none; background: transparent; width: 90%; max-width: 500px; outline: none; } input[type="range"]:focus, input[type="range"]:active, input[type="range"]::-moz-focus-inner, input[type="range"]::-moz-focus-outer { border: 0; outline: none; } input[type="range"]::-moz-range-thumb { border: none; height: 50px; width: 50px; background-color: transparent; background-image: url("https://storage.googleapis.com/pw-stuff/thumbs-sprite.png"); background-position: 0 0; background-size: cover; transform: scale(1.9) rotateZ(var(--thumb-rotate, 10deg)); cursor: pointer; } input[type="range"]::-moz-range-thumb:active { background-position: 100% 0px; transform: scale(2) rotateZ(var(--thumb-rotate, 10deg)); } input[type="range"]::-moz-range-track { width: 100%; height: 20px; background: #eee; border-radius: 10px; box-shadow: 2px 2px 4px rgba(0,0,0,0.4); cursor: pointer; } input[type="range"]::-moz-range-progress { height: 20px; background: #4685d7; border-radius: 10px; cursor: pointer; } input[type="range"]::-webkit-slider-thumb { border: none; height: 50px; width: 50px; background-color: transparent; background-image: url("http://re.........完整代码请登录后点击上方下载按钮下载查看
网友评论0