我想在一个
div
中进行过渡,它应该:
从
background-color:rgba(242, 245, 169, 1);
开始... 然后经过3秒钟...
以
background-color:rgba(242, 245, 169, 0);
结束
在两个阶段之间显示 background-color:rgba(242, 245, 169, 0.9);
、background-color:rgba(242, 245, 169, 0.8);
、background-color:rgba(242, 245, 169, 0.7);
...
类似于 这个解决方案 ,但没有 ':hover'。直接实现。
我该如何实现?
谢谢。