12 爱情魔方step03.rar
网页魔方效果,展示。 过渡与动画 过渡 transition属性 transition 属性名 持续时间 过渡方法 transition-property 属性名|all 对哪个属性进行变化 transition-duration 持续时间,单位 s(秒) 毫秒 transition-timing-function 过渡使用的方法(函数) transition-delay 过渡transition 作用:将元素的某个属性从“一个值”,在指定的时间内过渡到“另一个值”。 transiton-time-function属性值 值 描述 linear 匀速 ease 慢快慢 ease-in 慢快 ease-out 快慢 ease-in-out 慢快慢 例: div{ height: 30px; width: 100px; line-height: 30px; border-radius: 5px; color: #000; background-color: silver; transition: all 1s linear; } div:hover{ color: white; background-color: #45b823; }