transition和animation的区别
animation: donghua 3s ease 1s infinite normal forwards; animation: name keeping-time animate-function delay times iteration final;
.classname{ -webkit-animation:name 6s linear 0ms infinite normal forwards; -moz-animation:name 6s linear 0ms infinite normal forwards; -o-animation:name 6s linear 0ms infinite normal forwards; animation:name 6s linear 0ms infinite normal forwards; }
transition: opacity 1s linear; transition: transition-property transition-duration transition-timing-function;
div { opacity: 1; transition: opacity 1s linear; } div:hover { opacity: 0; }
【animation 和 transition 的区别 - mufengchun - 博客园】https://www.cnblogs.com/mufc/p/11468742.html
【CSS动画:transition的用法介绍】