Animated music player UI with rotating disc and pulsing controls. Features smooth animations that mimic a real vinyl record player.
<div class="music-player">
<div class="player-disc"></div>
<div class="player-controls">▶</div>
</div>
.music-player {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
.player-disc {
width: 100px;
height: 100px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea, #764ba2);
position: relative;
animation: spinDisc 3s linear infinite;
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.player-disc::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 30px;
height: 30px;
background: white;
border-radius: 50%;
}
.player-controls {
font-size: 2rem;
color: #667eea;
cursor: pointer;
animation: pulse 2s ease-in-out infinite;
}
@keyframes spinDisc {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}