響應式網頁前端設計

第一階段
加強熟識HTML&CSS

第二階段
學習JavaScript&jQuery

第三階段
Bootstrap協助專案設計

第四階段
w3.css協助專案設計

第五階段
自行開發網站專案設計

第六階段
Pug(Jade)&Sass協助開發效率

=== TSuiling write 2018.07 ===

響應式網頁前端設計【第一階段】加強熟識HTML&CSS

有關 animation 動畫

有關 animation 動畫的新屬性

版本 屬性 說 明
3 @keyframes 設計動畫時, 得先安排動畫時間內樣式變化的屬性內容。 參考【英文版】 【英文版】 【簡中版】 【簡中版
3 animation 設計執行動畫。 參考【英文版】 【英文版】 【簡中版】 【簡中版
3 animation-name 執行的動畫名稱, 也就是 @keyframes 的名稱。 參考【英文版】 【簡中版
3 animation-duration 執行動畫的持續時間。 參考【英文版】 【簡中版
3 animation-delay 執行動畫前的延遲時間。 參考【英文版】 【簡中版
3 animation-direction 執行動畫的時間軸方向。 參考【英文版】 【簡中版
3 animation-iteration-count 執行動畫的反覆次數, 設定 infinite 表示持續不斷的反覆執行。 參考【英文版】 【簡中版

針對藍色區塊測試各種 animation 動畫

#b2 { animation-name: testAni1; 
      animation-delay: 2s; 
      animation-duration: 4s; 
      animation-iteration-count: 3; }

@keyframes testAni1 {
    0%   {  }
    25%  { background-color: red; 
    50%  { background-color: green; }
    75%  { background-color: blue; }
    100% {  }
}
            


#b2 { transform-origin: 0 0; 
      animation: testAni2 2s 1s infinite; }

@keyframes testAni2 {
  0%   { transform: rotate(15deg); }
  50%  { transform: rotate(75deg); }
  100% { transform: rotate(15deg); }
}
            


#b2:hover { cursor: pointer;
            animation: testAni3 1s infinite; }

@keyframes testAni3 {
  50% { box-shadow: 0 0 20px red; }
}