纯css编写支持移动触摸的垂直进度滑块特效代码

所属分类: 网页特效-图表&进度    2023-12-10 11:56:37

纯css编写支持移动触摸的垂直进度滑块特效代码 ie兼容6
反馈问题  查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

纯css编写支持移动触摸的垂直进度滑块特效代码(共2个文件)

    • index.html

使用方法

@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.cd__main{
   background: #05051a !important;
  display: grid !important;
   grid-template-columns: 1fr 1fr;
  place-items: center;
  max-width: 480px !important;
}
body {
  min-height: 100vh;
  margin: 0 auto;
  background-color: #05051a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
}

.wrapper {
  position: relative;
  height: 20rem;
  width: 3rem;
  left: 50%;
  margin-left: 100px;
}
.wrapper::before, .wrapper::after {
  display: block;
  position: absolute;
  z-index: 99;
  color: #fff;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.75rem 0;
  pointer-events: none;
}
.wrapper::before {
  content: "+";
}
.wrapper::after {
  content: "−";
  bottom: 0;
}

input[type=range] {
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 0;
  width: 20rem;
  height: 3.5rem;
  transform: translate(-50%, -50%) rotate(-90deg);
  border-radius: 1rem;
  overflow: hidden;
  cursor: row-resize;
}
input[type=range][step] {
  background-color: transparent;
  background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) calc(12.5% - 1px), #05051a 12.5%);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  box-shadow: -20rem 0 0 20rem rgba(255, 255, 255, 0.2);
}
input[type=range]::-moz-range-thumb {
  border: none;
  width: 0;
  box-shadow: -20rem 0 0 20rem rgba(255, 255, 255, 0.2);
}

站长提示:
1. 平台上所有素材资源,需注册登录会员方能正常下载。
2. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励20K币
3. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
4. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 图表&进度

jquery响应式鼠标滚动顶部进度条插件

一款浏览器拉动滚动条,页面顶部显示当前位置进度条,非常的简单实用。
  图表&进度
 142  

html5响应式动态多步骤表单向导特效代码

一款响应式步骤向导推进特效,用户可通过单击这些选项卡查看每个进度节点说明。。
  图表&进度
 159  

jquery响应式垂直时间轴滚动锚点定位插件

一款带锚点定位的垂直滚动条时间轴插件,可以自动生成DIV内容中的节点(锚点链接)。
  图表&进度
 141  

CSS3创建的垂直统计图表柱状图动画特效代码

一款纯css实现的带动画特效的柱状图特效,基于CSS动画逐渐显示条形图。
  图表&进度
 119  

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论