Simple rotating CD production, simple rotating CD Production
<! DOCTYPE html>
<Html>
<Head>
<Meta charset = "UTF-8"/>
<Title> </title>
<Script src = "js/jquery-2.1.0.js" type = "text/javascript" charset = "UTF-8"> </script>
<Style>
Body {
Background-color: azure
}
. Box {
Width: 100px;
Height: 100px;
Border-radius: 50PX;
-Webkit-border-radius: 50px;
-Moz-border-radius: 50PX;
-Ms-border-radius: 50PX;
Overflow: hidden;
Position: relative;
Margin: auto;
}
. Pic {
Width: 100%;
Position: absolute;
Top: 0;
Left: 0;
Animation: pql 4S linear infinite;
-Webkit-animation: The pql 4S linear infinite;
-Moz-animation: The pql 4S linear infinite;
-Ms-animation: pql 4S linear infinite;
Border-radius: 50PX;
-Webkit-border-radius: 50px;
-Moz-border-radius: 50PX;
-Ms-border-radius: 50PX;
}
@-Webkit-keyframes pql {
100% {
-Webkit-transform: rotate (360deg );
-Moz-transform: rotate (360deg );
-Ms-transform: rotate (360deg );
Transform: rotate (360deg );
}
}
@-Moz-keyframes pql {
100% {
-Webkit-transform: rotate (360deg );
-Moz-transform: rotate (360deg );
-Ms-transform: rotate (360deg );
Transform: rotate (360deg );
}
}
@-Ms-keyframes pql {
100% {
-Webkit-transform: rotate (360deg );
-Moz-transform: rotate (360deg );
-Ms-transform: rotate (360deg );
Transform: rotate (360deg );
}
}
@ Keyframes pql {
100% {
-Webkit-transform: rotate (360deg );
-Moz-transform: rotate (360deg );
-Ms-transform: rotate (360deg );
Transform: rotate (360deg );
}
}
. Mc {
Width: 30px;
Height: 30px;
Position: absolute;
Border-radius: 15PX;
-Webkit-border-radius: 15px;
-Moz-border-radius: 15PX;
-Ms-border-radius: 15PX;
Top: 50%;
Left: 50%;
Margin-top:-15px;
Margin-left:-15px;
Background: url (img/MusicPause1.png) center;
Background-size: 100%;
Cursor: pointer;
}
</Style>
</Head>
<Body>
<Video style = "display: none;" id = "MVO" loop = "start" autoplay = "true" src = "img/1"> </video>
<Div class = "box">
<Div class = "mc">
</Div>
</Div>
</Body>
<Script>
Var myVideo = document. getElementById ("MVO ");
$ (". Mc"). click (function (){
If (myVideo. paused ){
MyVideo. play ();
$ (". Pic" ).css ("animation-play-state", "running ");
$ (". Mc" ).css ("background-image", "url (img/MusicPause1.png )")
} Else {
MyVideo. pause ();
$ (". Pic" ).css ("animation-play-state", "paused ");
$ (". Mc" ).css ("background-image", "url (img/MainCont1.png )")
}
})
</Script>
</Html>