h⑤三d旋转尘卷风,简单的旋转CD制作

By admin in 4858美高梅 on 2019年4月28日

(-一)写在前方

首先图片是本人从互联英特网下载的,向那位长辈致敬。笔者用的是chrome4玖,未有加差别浏览器的前缀,jquery三.0,图片能源位居了自家的百度云盘上

(-一)写在前边

率先图片是自家从互联互连网下载的,向那位长辈致敬。我用的是chrome4玖,未有加不一样浏览器的前缀,jquery3.0,图片能源放在了本人的百度云盘上

H53D旋转-遁地龙卷风,h5叁d旋转沙暴

差不离的转动CD制作,简单旋转CD制作

<!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: pql 4s linear infinite;
-moz-animation: 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 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”>
<img class=”pic” src=”img/1.jpg”/>
<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>

!DOCTYPE html
html head meta charset=”utf-8″ / title/title script
src=”js/jquery-2.1.0.js” type=”text/javascript”
charset=”utf-8″…

(1)知识企图

(一)知识盘算

(-一)写在前方

先是图片是本人从互联互连网下载的,向那位长辈致敬。小编用的是chrome4玖,未有加不相同浏览器的前缀,jquery三.0,图片能源放在了本人的百度云盘上

a.浏览器x、y、z轴的概念

左手竖代表y轴,右手横代表x轴,左右手摆成二个十字,z轴是即垂直x轴也垂直y轴穿过x、y交点的一条直线。

a.浏览器x、y、z轴的定义

左边竖代表y轴,右手横代表x轴,左右手摆成2个十字,z轴是即垂直x轴也垂直y轴穿过x、y交点的一条直线。

(壹)知识策画

b. :nth-of-type(1)

img:nth-of-type(一),全体有子成分img的父成分的首先个img子成分

body :nth-of-type(1) 等同于body *:nth-of-type(1)

b. :nth-of-type(1)

img:nth-of-type(壹),全部有子成分img的父成分的首先个img子元素

body :nth-of-type(1) 等同于body *:nth-of-type(1)

a.浏览器x、y、z轴的概念

h⑤三d旋转尘卷风,简单的旋转CD制作。左边竖代表y轴,右手横代表x轴,左右手摆成二个十字,z轴是即垂直x轴也垂直y轴穿过x、y交点的一条直线。

(2)代码

<!DOCTYPE html>

<html lang=”en”>

<head>

<meta charset=utf-8>

<script   type=”text/javascript”
src=”debug-jquery-3.0.0.js”></script>

<script   type=”text/javascript” src=”base.js”></script>

<link rel=”shortcut icon” href=”favicon.ico” type=”image/x-icon”>

<title>为了生活</title>

<style type=”text/css”>

     *

     {

           margin-top:0px;

           padding:0;

     }

     body

     {

           position:absolute;

     }

     #lol

     {

           width:530px;

           height:530px;

           position:absolute;

          

     }

     #lol img

     {

           display:block;

           position:absolute;

           border:1px #6F0000 solid;   

     }

     #4858美高梅,lol img:nth-of-type(1)

     {

           animation: one 10s linear 3s infinite;

     }

     @keyframes one

     {

           to

           {

                 transform: rotateX(360deg);

           }

     }

     #lol img:nth-of-type(2)

     {

           animation: two 10s linear 2s infinite;

     }

     @keyframes two

     {

           to

           {

                 transform: rotateY(360deg);

           }

     }

     #lol img:nth-of-type(3)

     {

           animation: three 10s linear 1s infinite;

     }

     @keyframes three

     {

           to

           {

                 transform:rotateZ(360deg);

           }

     }

</style>

<script type=”text/javascript”>

     $(function()

     {

           $(“#lol”).centerPos();

           //让lol成分水平垂直居中突显,centerPos是自定义函数

     })

$.fn.centerPos = function()

{

     var parent;

     this.each(function(index)

     {

           parent = this.parentNode;

           if(parent == document.body)

           {

                 parent = window;

           }

           var position = $(this).css(“position”);

           if(position == “fixed” || position==”absolute”)

           {

                
$(this).css(“left”,($(parent).width()-this.offsetWidth)/2+”px”)

                        
.css(“top”,($(parent).height()-this.offsetHeight)/2+”px”);

           }

           else

           {

                 window.console.error(“未有设置有效的position值”);

           }

     })

     return this;

}   

</script>

</head

<body>

     <div id=”lol”>

           <img src=”images/main5-pic1.png”>

           <img src=”images/main5-pic2.png”>

           <img src=”images/main5-pic3.png”>

     </div> 

</body>              

</html>                 

                        

                         

(2)代码

<!DOCTYPE html>

<html lang=”en”>

<head>

<meta charset=utf-8>

<script   type=”text/javascript”
src=”debug-jquery-3.0.0.js”></script>

<script   type=”text/javascript” src=”base.js”></script>

<link rel=”shortcut icon” href=”favicon.ico” type=”image/x-icon”>

<title>为了生活</title>

<style type=”text/css”>

     *

     {

           margin-top:0px;

           padding:0;

     }

     body

     {

           position:absolute;

     }

     #lol

     {

           width:530px;

           height:530px;

           position:absolute;

          

     }

     #lol img

     {

           display:block;

           position:absolute;

           border:1px #6F0000 solid;   

     }

     #lol img:nth-of-type(1)

     {

           animation: one 10s linear 3s infinite;

     }

     @keyframes one

     {

           to

           {

                 transform: rotateX(360deg);

           }

     }

     #lol img:nth-of-type(2)

     {

           animation: two 10s linear 2s infinite;

     }

     @keyframes two

     {

           to

           {

                 transform: rotateY(360deg);

           }

     }

     #lol img:nth-of-type(3)

     {

           animation: three 10s linear 1s infinite;

     }

     @keyframes three

     {

           to

           {

                 transform:rotateZ(360deg);

           }

     }

</style>

<script type=”text/javascript”>

     $(function()

     {

           $(“#lol”).centerPos();

           //让lol成分水平垂直居中显得,centerPos是自定义函数

     })

$.fn.centerPos = function()

{

     var parent;

     this.each(function(index)

     {

           parent = this.parentNode;

           if(parent == document.body)

           {

                 parent = window;

           }

           var position = $(this).css(“position”);

           if(position == “fixed” || position==”absolute”)

           {

                
$(this).css(“left”,($(parent).width()-this.offsetWidth)/2+”px”)

                        
.css(“top”,($(parent).height()-this.offsetHeight)/2+”px”);

           }

           else

           {

                 window.console.error(“未有安装有效的position值”);

           }

     })

     return this;

}   

</script>

</head

<body>

     <div id=”lol”>

           <img src=”images/main5-pic1.png”>

           <img src=”images/main5-pic2.png”>

           <img src=”images/main5-pic3.png”>

     </div> 

</body>              

</html>                 

                        

                         

b. :nth-of-type(1)

img:nth-of-type(壹),全体有子元素img的父成分的第3个img子成分

body :nth-of-type(1) 等同于body *:nth-of-type(1)

(2)代码

<!DOCTYPE html>

<html lang=”en”>

<head>

<meta charset=utf-8>

<script   type=”text/javascript”
src=”debug-jquery-3.0.0.js”></script>

<script   type=”text/javascript” src=”base.js”></script>

<link rel=”shortcut icon” href=”favicon.ico” type=”image/x-icon”>

<title>为了生活</title>

<style type=”text/css”>

     *

     {

           margin-top:0px;

           padding:0;

     }

     body

     {

           position:absolute;

     }

     #lol

     {

           width:530px;

           height:530px;

           position:absolute;

          

     }

     #lol img

     {

           display:block;

           position:absolute;

           border:1px #6F0000 solid;   

     }

     #lol img:nth-of-type(1)

     {

           animation: one 10s linear 3s infinite;

     }

     @keyframes one

     {

           to

           {

                 transform: rotateX(360deg);

           }

     }

     #lol img:nth-of-type(2)

     {

           animation: two 10s linear 2s infinite;

     }

     @keyframes two

     {

           to

           {

                 transform: rotateY(360deg);

           }

     }

     #lol img:nth-of-type(3)

     {

           animation: three 10s linear 1s infinite;

     }

     @keyframes three

     {

           to

           {

                 transform:rotateZ(360deg);

           }

     }

</style>

<script type=”text/javascript”>

     $(function()

     {

           $(“#lol”).centerPos();

           //让lol成分水平垂直居中显得,centerPos是自定义函数

     })

$.fn.centerPos = function()

{

     var parent;

     this.each(function(index)

     {

           parent = this.parentNode;

           if(parent == document.body)

           {

                 parent = window;

           }

           var position = $(this).css(“position”);

           if(position == “fixed” || position==”absolute”)

           {

                
$(this).css(“left”,($(parent).width()-this.offsetWidth)/2+”px”)

                        
.css(“top”,($(parent).height()-this.offsetHeight)/2+”px”);

           }

           else

           {

                 window.console.error(“未有设置有效的position值”);

           }

     })

     return this;

}   

</script>

</head

<body>

     <div id=”lol”>

           <img src=”images/main5-pic1.png”>

           <img src=”images/main5-pic2.png”>

           <img src=”images/main5-pic3.png”>

     </div> 

</body>              

</html>                 

                        

                         

(-一)写在前方
首先图片是作者从互联英特网下载的,向那位长辈致敬。作者用的是chrome4九,
未有加不一样浏览器…

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图
Copyright @ 2010-2019 美高梅手机版4858 版权所有