第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

3D旋轉(zhuǎn)(視頻中學(xué)來的,分享給大家)

標(biāo)簽:
Html/CSS Html5 CSS3

不完善之处,请自己完善。

<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus">
  <!--网页三要素:标题,关键词,描述 -->
  <meta name="Keywords" content="关键词">
  <meta name="Description" content="描述">
  <title>3D旋转</title>

  <!--CSS层叠样式表-->
  <style type="text/css">
  *{
      margin:0px;
      padding:0px:
  }
  #box{
      width:150px;
      height:150px;
      margin:150px auto;/*上下   左右*/
      transform-style:preserve-3d;/*置于3D空间*/
      transform-origin:center center center;/*3d空间的x,y,z居中*/
      animation:spain   12s infinite linear;
      position:relative;
  }
  @-webkit-keyframes spain
  {
            form{transform:rotateX(0deg) rotateY(0deg)}
            to{transform:rotateX(360deg) rotateY(360deg)}
  }
  /*#box .box1{
      width:100px;
      height:160px;
      border:1px solid red;
      border-width:3px 3px 0px 0px;/*上 右 下 左 边框线*/
      /*position:absolute;
      left:0;
      top:0;
      border-radius:50% 40% 50% 0;
      transform:rotateX(0deg) rotateZ(45deg) translateX(30PX)

  }*/
  </style>
 </head>
 <body>
      <div id="box"></div>

      <!-- JS -->
      <script>
      //获取到容器
      var objbox = document.getElementById("box");
      //创建div
      for(var i=0; i<36; i++)
      {
          var obj = document.createElement("div");
          obj.style.width = "100px";
          obj.style.height = "160px";
          obj.style.border = "1px solid "+color()+"";
          obj.style.borderWidth = "2px 2px 0px 0px";
          obj.style.position = "absolute";
          obj.style.left = "0";
          obj.style.top = "0";
          obj.style.borderRadius = "50% 40% 50% 0";
          obj.style.transform = "rotateY("+10*i+"0deg) rotateZ(50deg) translateX(30px)";

          //添加对象
          objbox.appendChild(obj);
      }

      //随机颜色
      function color()
      {
          var r = parseInt(Math.random()*255);
          var g = parseInt(Math.random()*255);
          var b = parseInt(Math.random()*255);
          return "rgba("+r+","+g+","+b+",1)";
      }
      </script>

 </body>
</html>
點擊查看更多內(nèi)容
12人點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優(yōu)質(zhì)文章

正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學(xué)

大額優(yōu)惠券免費領(lǐng)

立即參與 放棄機會
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

舉報

0/150
提交
取消