three模拟一个可改参数的旗帜迎风飘动的效果

代码语言:html

所属分类:三维

代码描述:three模拟一个可改参数的旗帜迎风飘动的效果

代码标签: 可改 参数 旗帜 迎风 飘动 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
main {
    display: flex;
}
.meter {
    display: flex;
    width: 80%;
    margin:15px auto;
}
.meter p{
    width: 120px;
    margin: 0;
}
.meter span{
    width: 40px;
    margin: 0 15px;
    line-height: 12px;
}
#left {
    width: 50%;
}
#right {
    width: 50%;
    text-align:center;
}

h1 {
    width:100%;
    font-size:48px;
    text-align:center;
}

input[type='range'] {
    -webkit-appearance: none;
    background-color: #cccccc;
    height: 10px;
    overflow: visible;
    width: 300px;
    position: relative;
    border-radius: 3px;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0