CSS3中translate、transform和translation的區別和聯絡

來源:互聯網
上載者:User

標籤:ati   根據   水平線   一個   for   property   1.5   座標   function   

translate:移動,transform的一個方法

              通過 translate() 方法,元素從其當前位置移動,根據給定的 left(x 座標) 和 top(y 座標) 位置參數:          用法transform: translate(50px, 100px);              -ms-transform: translate(50px,100px);              -webkit-transform: translate(50px,100px);              -o-transform: translate(50px,100px);              -moz-transform: translate(50px,100px); transform:變形。改變                 CSS3中主要包括 旋轉:rotate() 順時針旋轉給定的角度,允許負值 rotate(30deg)                   扭曲:skew() 元素翻轉給定的角度,根據給定的水平線(X 軸)和垂直線(Y 軸)參數:skew(30deg,20deg)                   縮放:scale() 放大或縮小,根據給定的寬度(X 軸)和高度(Y 軸)參數: scale(2,4)                   移動:translate() 平移,傳進 x,y值,代表沿x軸和y軸平移的距離                   所有的2D轉換方法組合在一起: matrix()  旋轉、縮放、移動以及傾斜元素                   matrix(scale.x ,, , scale.y , translate.x, translate.y)         改變起點位置 transform-origin: bottom left;      綜合起來使用:transform: 30deg 1.5 30deg 20deg 100px 200px; transition: 允許CSS屬性值在一定的時間區間內平滑的過渡,            需要事件的觸發,例如單擊、擷取焦點、失去焦點等            transition:property duration timing-function delay;                   property:CSS的屬性,例如:width height 為none時停止所有的運動,可以為transform                              duration:期間                   timing-function:ease等                   delay:延遲                   注意:當property為all的時候所有動畫            例如:transition:width 2s ease 0s;            http://www.w3cplus.com/content/css3-transition

CSS3中translate、transform和translation的區別和聯絡

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.