同学们可以这样写,给box:hover就行
.box {
width: 100px;
height: 100px;
background-color: black;
transition:width 2s linear 1s ;
}
.box:hover{
width: 500px;
}
.box {
width: 100px;
height: 100px;
background-color: black;
transition:width 2s linear 1s ;
}
.box:hover{
width: 500px;
}
2020-02-09
已经看完了,对animation、transform和transition三者有一定的了解,再结合js,看完老师讲解之后的Demo,发现学习到很多没接触过的知识点,课后觉得很有必要自己动手写一遍。
2020-02-05
https://codepen.io/arm-liang/full/KKwyJyV
可以借鉴一波,使用百分比translate替代js width配置,使用css transition替代等待和动画时长配置
可以借鉴一波,使用百分比translate替代js width配置,使用css transition替代等待和动画时长配置
2020-01-04
https://codepen.io/arm-liang/full/KKwyJyV
可以间接一波,使用百分比替代js width配置,使用css transition替代等待和动画时长配置
可以间接一波,使用百分比替代js width配置,使用css transition替代等待和动画时长配置
2020-01-04