css3基礎點2

來源:互聯網
上載者:User

標籤:

transform:變形種類;的名稱(對應的屬性值),多個種類之間使用空格分隔。一個()中的屬性值之間用逗號分隔。

transition 屬性是一個簡寫屬性,用於設定四個過渡屬性:

  • transition-property  哪個屬性實現過渡如:width
  • transition-duration  完成過渡效果需要多少秒/毫秒
  • transition-timing-function  速度效果的運動曲線,如linear 、ase-in 、ease 、 ease-out 、ease-in-out 、 cube-bezier(貝茲路徑) 
  • transition-delay  規定過渡開始前等待幾秒   
簡寫:transition:width 2s ease;CSS3 動畫  animationanimation 基本參數與 transition 完全相同,第一個參數表示的是調用哪個動畫  infinite 表示無限迴圈.wrap {   height:100px; 
   margin:10px; 
    -webkit-animation:colorChange 10s linear 1.5s infinite; 
} @-webkit-keyframes colorChange { 
      0%{ background:#f00;} 
      10%{ background:#ff0;} 
}

 

CSS3倒影 -webkit-box-reflect
1.方向 -webkit-box-reflect: below/above/left/right
2.距離
3.透明度
-webkit-box-reflect: below 10px -webkit-linear-gradient(top,rgba(0,0,0,0) 20%,
rgba(0,0,0,0.6) 100%)
旋轉 :-webkit-transform: rotate(120deg);
平移 :-webkit-transform: translate(20px, 10px); -moz-transform: translateX(20px);
縮放 : -webkit-transform: scale(1.1,0.5); X方向縮放1.1倍,Y方向縮放0.5倍
backface-visibility: visible | hidden; 定義當元素不面向螢幕時是否可見。可用在撲克牌旋轉上。
transform:變形種類;的名稱(對應的屬性值),多個種類之間使用空格分隔。一個()中的屬性值之間用逗號分隔。
transition 屬性是一個簡寫屬性,用於設定四個過渡屬性:

transition-property 哪個屬性實現過渡如:width
transition-duration 完成過渡效果需要多少秒/毫秒
transition-timing-function 速度效果的運動曲線,如linear 、ase-in 、ease 、 ease-out 、ease-in-out 、 cube-bezier(貝茲路徑)
transition-delay 規定過渡開始前等待幾秒
簡寫:transition:width 2s ease;
CSS3 動畫 animation
animation 基本參數與 transition 完全相同,第一個參數表示的是調用哪個動畫 infinite 表示無限迴圈
.wrap {
height:100px;
margin:10px;
-webkit-animation:colorChange 10s linear 1.5s infinite;
}
@-webkit-keyframes colorChange {
0%{ background:#f00;}
10%{ background:#ff0;}
}
HTML5新增加標籤:
優勢:① 語義性好 少類名 有利於SEO 代碼少
② 文檔易讀 、搜尋引擎能夠更好的理解頁面中的內容、作為開發人員,能夠更快更準確的搜尋到資訊

css3基礎點2

聯繫我們

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