<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>classList</title>
<style>
.orange{
width: 250px;
height: 200px;
background-color:lawngreen;
border: 1px dotted grey;
animation-name: test;
/* 动画完成一个周期所需要的时间 */
animation-duration:2s;
/* 开始前等待的时间 */
animation-delay:1s;
/* 播放次数 */
animation-iteration-count:1;
}
@keyframes test {
0% {
width: 250px;
height: 40px;