css3 transform: rotate()

來源:互聯網
上載者:User

標籤:blog   http   color   os   使用   io   ar   for   2014   

 

/*help*/

.help{  position: relative;     width: 130px;     height: 130px;     border: 6px #fff solid;  border-radius: 50%;     -webkit-animation: rotation 1s ease-in-out infinite;        -moz-animation: rotation 1s ease-in-out infinite;             animation: rotation 1s ease-in-out infinite;     margin: 60px auto 0; } .help:after{     width: 15px;     height: 15px;     background-color: #fff;     border-radius: 50%;     position: absolute;  left: 0px;  top: 57px;     content: ""; } @-webkit-keyframes rotation{     0%{-webkit-transform: rotate(0deg);}     100%{-webkit-transform: rotate(360deg);} } @-moz-keyframes rotation{     0%{-moz-transform: rotate(0deg);}     100%{-moz-transform: rotate(360deg);} } @keyframes rotation{     0%{transform: rotate(0deg);}     100%{transform: rotate(360deg);} }

 

<!-- Typing Loader -->

<div class="typing">

 <div class="help">

   </div>

</div>

 ********

文法
transform: none|transform-functions;
值 描述 測試
none 定義不進行轉換。 測試
matrix(n,n,n,n,n,n) 定義 2D 轉換,使用六個值的矩陣。 測試
matrix3d(n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n) 定義 3D 轉換,使用 16 個值的 4x4 矩陣。  
translate(x,y) 定義 2D 轉換。 測試
translate3d(x,y,z) 定義 3D 轉換。  
translateX(x) 定義轉換,只是用 X 軸的值。 測試
translateY(y) 定義轉換,只是用 Y 軸的值。 測試
translateZ(z) 定義 3D 轉換,只是用 Z 軸的值。  
scale(x,y) 定義 2D 縮放轉換。 測試
scale3d(x,y,z) 定義 3D 縮放轉換。  
scaleX(x) 通過設定 X 軸的值來定義縮放轉換。 測試
scaleY(y) 通過設定 Y 軸的值來定義縮放轉換。 測試
scaleZ(z) 通過設定 Z 軸的值來定義 3D 縮放轉換。  
rotate(angle) 定義 2D 旋轉,在參數中規定角度。 測試
rotate3d(x,y,z,angle) 定義 3D 旋轉。  
rotateX(angle) 定義沿著 X 軸的 3D 旋轉。 測試
rotateY(angle) 定義沿著 Y 軸的 3D 旋轉。 測試
rotateZ(angle) 定義沿著 Z 軸的 3D 旋轉。 測試
skew(x-angle,y-angle) 定義沿著 X 和 Y 軸的 2D 傾斜轉換。 測試
skewX(angle) 定義沿著 X 軸的 2D 傾斜轉換。 測試
skewY(angle) 定義沿著 Y 軸的 2D 傾斜轉換。 測試
perspective(n) 為 3D 轉換元素定義透視視圖。 測試
 

 

css3 transform: rotate()

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.