rxjs实现滑块拖动数字变化代码
代码语言:html
所属分类:拖放
代码描述:rxjs实现滑块拖动数字变化代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,700");
:root {
--value-progress: calc(var(--value, 6) / 12);
font-family: Open Sans, sans-serif;
font-weight: 300;
font-size: 2.5vh;
}
#app {
height: 96vh;
width: 54vh;
background: linear-gradient(to top right, #f76464, #ff8605, #EC4E91, #9535D3, #4DACFF);
background-size: 400% 400%;
background-position: calc(var(--value-progress) * 100%) 0;
color: white;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
overflow: hidden;
box-shadow: 0 0 4vh rgba(0, 0, 0, 0.1);
}
@media (max-width: 740px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
#app {
width: 100%;
height: 100%;
}
}
.ui-header {
height: 8vh;
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 2vh;
background: white;
color: #B5B5B5;
}
.ui-header > * {
width: 25%;
flex: 0 0 25%;
}
.ui-header > .ui-text.-app-title {
text-align: center;
flex: 1 0 auto;
white-space: nowrap;
}
.ui-header > .ui-text:last-child {
text-align: right;
}
.ui-content {
flex: 1 0 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding-top: 8vh;
}
.ui-discounts {
padding: 2vh 0;
text-align: center;
width: calc(100% - 6vh);
margin: 0 2vh;
border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.ui-discounts > .ui-text {
margin: 1vh 0;
line-height: 1;
letter-spacing: 0.5px;
}
.ui-value {
height: 24vh;
width: 28.8vh;
line-height: 24vh;
margin: 2vh 0;
font-weight: 700;
}
.ui-value:before, .ui-value:after {
display: block;
position: absolute;
height: 4vh;
line-height: 4vh;
top: calc(50% - 2vh);
font-weight: 300;
font-size: 2.5vh;
letter-spacing: 0.5px;
transition: tra.........完整代码请登录后点击上方下载按钮下载查看
网友评论0