three+tone实现多种三维图形变换屏保动画效果代码
代码语言:html
所属分类:动画
代码描述:three+tone实现多种三维图形变换屏保动画效果代码,可以选择不同的shape和颜色配置,还可以设置具体动画参数。
代码标签: three tone 多种 三维 图形 变换 屏保 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
font-family: Arial, sans-serif;
background: #000;
color: #fff;
}
.settings-panel {
position: fixed;
top: 70px;
right: -300px; /* Start off-screen */
width: 300px;
height: 100%;
background: rgba(0, 0, 0, 0.8);
transition: right 0.3s ease-in-out;
overflow-y: auto;
z-index: 1000;
padding: 20px;
box-sizing: border-box;
}
.settings-panel.open {
left: 0;
}
.settings-toggle {
position: fixed;
top: 10px;
left: 10px;
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
z-index: 1001;
opacity: 0.7;
transition: opacity 0.3s;
}
.settings-toggle:hover {
opacity: 1;
}
button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s;
}
button:hover {
background-color: #45a049;
}
button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
.fullscreen-button {
width: 100%;
margin-bottom: 20px;
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: block;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s;
}
.fullscreen-button:hover {
background-color: #45a049;
}
.randomize-button {
width: 100%;
margin-bottom: 20px;
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: block;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s;
}
.randomize-button:hover {
background-color: #45a049;
}
.slider {
-webkit-appearance: none;
width: 100%;
height: 15px;
border-radius: 5px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
transition: opacity .2s;
margin: 10px 0;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
border-radius: 50%;
background: #4CAF50;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
border-radius: 50%;
background: #4CAF50;
cursor: pointer;
}
#tempoValue, #speedValue, #rotationValue, #colorCycleSpeedValue, #colorIntensityValue, #zoomValue, #teleidoscopeSidesValue, #teleidoscopeRotationSpeedValue, #edgeThicknessValue, #starEdgeLengthValue, #starEdgeAngleValue, #distortionAmountValue, #distortionSpeedValue {
display: inline-block;
width: 50px;
text-align: right;
}
</style>
</head>
<body translate="no">
<div id="settingsPanel" class="settings-panel">
<div id="settingsContent">
<div>
<button id="fullscreenToggle" class="fullscreen-button">Toggle Fullscreen</button>
<button id="randomizeButton" class="randomize-button">Randomize All Settings</button>
</div>
<div>
<label for="shapeSelect">Shape:</label>
<select id="shapeSelect">
<option value="circle">Circle</option>
<option value="square">Square</option>
<option value="triangle" selected>Triangle</option>
<option value="pentagram">Pentagram</option>
<option value="heptagram">Heptagram</option>
<option value="octagram">Octagram</option>
<option value="enneagram">Enneagram</option>
<option value="decagram">Decagram</option>
<option value="hendecagram">Hendecagram</option>
<option value="dodecagram">Dodecagram</option>
</select>
</div>
<div>
<label for="colorGroup">Color Group:</label>
<select id="colorGroup">
<option value="group1" selected>Vibrant Red-Blue</option>
<option value="group2">Sunset Ocean</option>
<option value="group3">Neon Spectrum</option>
<option value="group4">Nature Pop</option>
<option value="group5">Citrus Twilight</option>
<option value="group6">Forest Glow</option>
<option value="group7">Candy Cosmos</option>
<option value="group8">Royal Prism</option>
<option value="custom">Custom</option>
</select>
</div>
<div id="customColorInputs" style="display: none;">
<input type="color" id="customColor1" value="#FF0000">
<input type="color" id="customColor2" value="#00FFFF">
<input type="color" id="customColor3" value="#FFFF00">
<input type="color" id="customColor4" value="#0000FF">
</div>
<div>
<label for="randomizeColors">Randomize Colors:</label>
<input type="checkbox" id="randomizeColors" checked>
<.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0