div+css布局实现电子dj台效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现电子dj台效果代码

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

网友评论0