今天要记录的是CSS3中的三种属性transform、transition以及animation,这三个属性大大提升了css处理动画的能力。
CSS中transform
属性允许你修改CSS可视化模型的坐标控件。使用transform,元素可以安装设定的值变形、旋转、缩放、倾斜。
语法:
transform : none | <transform-function> [ <transform-function> ]* 也就是: transform: rotate | scale | skew | translate |matrix;
对一个元素进行transform的多种属性操作,例如rotate、scale、translate三种,以往我们叠加效果都是用逗号(“,”)隔开,但transform中使用多个属性时却需要有空格隔开。
QQAYkU3Waeq2CtGSbbbKzjnYyAAAAc/AG7N11To3ODUvb448nTU5OK8CkszHZZkvPc2LSOSy1OpVE0onEEZ18RDqRxoX3EohKp06IR6AfCAAAEBkSc51IoQqKv0g3kM6t6UmTbbbJzrovksOiiRCNOhkKqKeguLEgLazSuOxC1AkAQPRgSqczL31kCNyYbEtuFJZOVdTQebgSFo4ljWZOYcAOAEAcYTDXqUaFBcWNIyPrOkI6RcEjRA7EDKkiKJ3UGQYyIAUAADAJb8DeWFxgsyU3jkxBrkxLVr/qpBOPN4VlazhWxcJb8upC51RzMp5KwUQnAAAWIzTXqWrT5KT0brZ0YnOa4UOTadKJws8RpRueACUPR1GkVhD1mdVINjmtgPp4ih3JAgAARAhPOp156bqXk9Sn5BzpRHqHH6hKJz5g14308edCqsx119WtTEu2Ee9I6XQQn+tUH9yjE0DUCQBANOBJZ8HwCF39jPTOQDrRduwREx51RvJep26GlIwfSenE33YC6QQAwHI40hlWPfXxS3JaAVU6VXAdxHY1JmtlV6G/16kUpCWT0qmb9CQfTOmesDcWF0xOevwLkE4AAKIG/x8xh/UIveiTNPy25rCyqdJJPDefnJb2OK5x2Knkok78ibk2p+atI9mZVgAAAJPw3uu0hd9JsqXnObXTiIoaLWICp8Z35OOa8AhaJOrUPvzREdZfTE8pYkpuBwAAsAS+dIbf4lQURVG605OSCoq/UHUNAjoAAL6ZwI/OAQAASAPSCQAAIA1IJwAAgDQgnQAAANKAdAIAAEgD0gkAACANSCcAAIA0IJ0AAADSgHQCAABIA9IJAAAgD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