📜  角度关键帧 % - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:18.902000             🧑  作者: Mango

代码示例1
// the provided offset values
animate("5s", keyframes([
  style({ backgroundColor: "red", offset: 0 }), // 0%
  style({ backgroundColor: "blue", offset: 0.2 }), // 20%
  style({ backgroundColor: "orange", offset: 0.3 }), // 30%
  style({ backgroundColor: "black", offset: 1 }) // 100%
]))