div+css布局实现电子dj台效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现电子dj台效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; display: flex; justify-content: center; align-items: center; background: #111; color: #fff; font-family: "Arial", sans-serif; overflow: hidden; perspective: 1000px; } .dj-booth { width: 1400px; /* 1200'den 1400'e çıkardık */ height: 600px; background: linear-gradient(45deg, #1a1a1a, #2a2a2a); border-radius: 20px; padding: 30px; display: flex; gap: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transform: rotateX(10deg); } .turntable { width: 400px; height: 100%; background: #222; border-radius: 15px; padding: 20px; position: relative; display: flex; flex-direction: column; align-items: center; } .platter { width: 300px; height: 300px; background: #111; border-radius: 50%; position: relative; margin-top: 20px; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .vinyl { width: 290px; height: 290px; background: linear-gradient(45deg, #333, #222); border-radius: 50%; position: absolute; display: flex; justify-content: center; align-items: center; animation: spin 2s linear infinite; } .vinyl::after { content: ""; width: 100px; height: 100px; background: #444; border-radius: 50%; border: 20px solid #333; } .vinyl::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: repeating-radial-gradient( circle at center, #333, #333 1px, #222 1px, #222 4px ); } .mixer { width: 360px; height: 100%; background: #333; border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } .fader-group { display: flex; justify-content: space-around; height: 200px; } .fader { width: 60px; height: 100%; background: #222; border-radius: 10px; position: relative; padding: 10px; } .fader-track { width: 10px; height: 160px; background: #444; border-radius: 5px; margin: 0 auto; position: relative; } .fader-handle { width: 30px; height: 20px; background: #ddd; position: absolute; left: 50%; transform: translateX(-50%); border-radius: 5px; cursor: pointer; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); } .display { height: 80px; background: #000; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-family: "Digital", monospace; font-size: 1.5rem; color: #0f0; text-shadow: 0 0 5px #0f0; } .led { width: 10px; height: 10px; background: #f00; border-radius: 50%; position: absolute; top: 10px; right: 10px; box-shadow: 0 0 10px #f00; animation: blink 1s infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .speed-display { margin-top: 20px; font-size: 0.9rem; color: #0f0; } .controls { margin-top: 20px; display: flex; gap: 10px; } .control-button { padding: 5px 10px; background: #444; border: none; border-radius: 5px; color: #fff; cursor: pointer; } .control-button:hover { background: #555; } .volume-meter { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; background: #222; padding: 10px; border-radius: 5px; } .volume-meter-label { text-align: center; margin-top: 5px; font-size: 12px; color: #888; } .led-light { width: 15px; height: 15px; background: #0f0; border-radius: 50%; opacity: 0.1; transition: opacity 0.3s; border: 1px solid #0a0; } .fader-label { position: absolute; bottom: -25px; left: 50%; transform:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0