transition过渡
一共有四个属性
transition-property: 属性; 监听所有具备动画过渡的属性(默认为all)
transition-duration:时间; 时间间隔,过渡完成的时间
transition-timing-function:运动函数; 过渡的运动函数
transition-delay: 时间; 延迟时间开始过渡
也可以一起写。也可以多写几次
举例
div{
width: 100px;
height: 100px;
background-color: red;
transition : all 1s linear 1s;