vue气球滑块选择器效果

代码语言:html

所属分类:表单美化

代码描述:vue气球滑块选择器效果

代码标签: 选择器 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<html>
<head>
<meta charset="utf-8">

<style type="text/css">
        :root {
  --color-primary: #5626e8;
  --color-secondary: #d2daef;
  --color-bg: #f4f6fe;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
}

main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sliderContainer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3em;
}

.sliderContainer .sliderContainer__input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  height: 0.2em;
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    color-stop(50%, var(--color-primary)),
    color-stop(50%, var(--color-secondary))
  );
  borde.........完整代码请登录后点击上方下载按钮下载查看

网友评论0