Bootstrap & Canvas Game & CSS3 Animation
Templates and knowledges
ctx = element.getContext
ctx.drawImage(img,cutX,cutY,cuWw,cutH,x,y,w,h)
ctx.drawRect(x,y,w,h) // xy距离左上角
animation
组合使用多个则动画名字+持续时间必须要,其他可选
animation-name动画名称
重复定义后出现优先级高
animation-duration动画持续时间
animation-iteration-count动画迭代次数
数字或infinite
animation-direction动画变化方向0%<->100%
normal/reverse/alternate/alternatate-reverse
animation-delay延迟时间
animation-timing-function速度变化
ease/ease-in/ease-out/ease-in-out/linear/cubic-bezier()
steps(步数,start/end)/step-start/step-end
animation-fill-mode填充
forwards/backwards/both
animation-play-state播放状态
running/paused