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">
        <op.........完整代码请登录后点击上方下载按钮下载查看

网友评论0