js+css实现液态水位数值滑块拖动效果代码

代码语言:html

所属分类:拖放

代码描述:js+css实现液态水位数值滑块拖动效果代码

代码标签: js css 液态 水位 数值 滑块 拖动

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

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">

  
  
<style>
:root {
  --completion: 50%;
  /*The top offset for the wave*/
  --offset: 2vh;
}

body {
  display: grid;
  place-content: center;
  height: 100vh;
  background: #333;
}

.indicator {
  height: 20vh;
  width: 20vh;
  position: relative;
  border-radius: 50%;
  border: 4px double white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

output {
  z-index: 1;
  font-family: system-ui;
  font-size: 10vh;
  color: #333;
}

.indicator::after {
  display: block;
  width: 40vh;
  height: 40vh;
  content: "";
  background-color: #a4eafd;
  border-radius: 15vh;
  position: absolute;
  left: 50%;
  top: calc(100% - var(--completion) + var(--offset));
  translate: -50% 0;
  -webkit-animation: spin 5s linear infinite;
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0