JSFiddle - React, Tailwind, and code Playground
by charlescarver
HTML
<div class="noise"></div>
<div class="container">
<div class="cover"></div>
<div class="content">
<div class="switch">
<div class="toggle"></div>
</div>
<div class="arm_container">
<div class="pivot"></div>
<div class="front_arm">
<div class="tip"></div>
<div class="thick"></div>
</div>
<div class="back_arm"></div>
</div>
<div class="rest"></div>
<div class="center">
<div class="small"></div>
</div>
<div class="first top_vinyl vinyl">
<div class="last top_vinyl vinyl">
<div class="main top_vinyl vinyl"></div>
</div>
</div>
<div class="first bottom_vinyl vinyl">
<div class="last bottom_vinyl vinyl">
<div class="main bottom_vinyl vinyl"></div>
</div>
</div>
<div class="ring_container">
<div class="first ring">
<div class="last ring">
<div class="main ring"></div>
</div>
</div>
</div>
<div class="inside_container">
<div class="first inside">
<label>Sgt. Pepper</label><br /><span>Sgt. Pepper's Lonely Hearts Club Band<br />Lucy in the Sky with Diamonds<br />When I'm Sixty- Four<br />A Day in the Life</span>
<div class="last inside">
<label>Sgt. Pepper</label><br /><span>Sgt. Pepper's Lonely Hearts Club Band<br />Lucy in the Sky with Diamonds<br />When I'm Sixty- Four<br />A Day in the Life</span>
<div class="main inside">
<label>Sgt. Pepper</label><br /><span>Sgt. Pepper's Lonely Hearts Club Band<br />Lucy in the Sky with Diamonds<br />When I'm Sixty- Four<br />A Day in the Life</span>
</div>
</div>
</div>
</div>
<audio...
CSS
*{
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
line-height: normal;
margin:0;
padding:0;
}
body{
background-color:#222;
}
div{
-webkit-backface-visibility:hidden;
-moz-backface-visibility: hidden;
position: absolute;
}
.audio{
display: none;
}
/* Animations */
@-webkit-keyframes arm {
0% {
-webkit-transform: rotate(0deg);
}
2% {
-webkit-transform: rotate(18deg);
}
99% {
-webkit-transform: rotate(38deg);
}
100% {
-webkit-transform: rotate(0deg);
}
}
@-moz-keyframes arm {
0% {
-moz-transform: rotate(0deg);
}
2% {
-moz-transform: rotate(18deg);
}
99% {
-moz-transform: rotate(38deg);
}
100% {
-moz-transform: rotate(0deg);
}
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
}
100% {
-moz-transform: rotate(360deg);
}
}
@-webkit-keyframes toggle {
0% {
-webkit-transform: translateX(0);
}
1% {
-webkit-transform: translateX(-10px);
background-color:red;
}
1.1% {
background-color:#1EEC04;
}
99%{
-webkit-transform: translateX(-10px);
}
100% {
background-color:#1EEC04;
}
}
@-moz-keyframes toggle {
0% {
-moz-transform: translateX(0);
}
1% {
-moz-transform: translateX(-10px);
background-color:red;
}
1.1% {
background-color:#1EEC04;
}
99%{
-moz-transform: translateX(-10px);
}
100% {
background-color:#1EEC04;
}
}
/* Container */
.content{
width:258px;
height:200px;
margin:20px;
}
.cover{
width:298px;
height:238px;
z-index: 1000;
background: -webkit-linear-gradient(
top,
rgba(125,126,125,.2) 0%,
rgba(14,14,14,.2) 100%
);
...