10. Progress condition loading effects

Effect (the source code network disk address is at the end)

Pay attention to the public account "Moving the World" to see more video tutorials!

source code

index.html

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <link rel="stylesheet" href="./style.css">

</head>
<body>
<div class="line"></div>
  
</body>
</html>

css

html {
  height: 100%;
  background: linear-gradient(#813b97, #463c96);
}

@-webkit-keyframes progress1 {
  0% {
    transform: scalex(0);
    opacity: 0.5;
  }
  90% {
    transform: scalex(1);
    opacity: 1;
  }
  92% {
    transform: scalex(1);
    opacity: 1;
  }
  100% {
    transform: scalex(1);
    opacity: 0;
  }
}



Guess you like

Origin blog.csdn.net/qq449245884/article/details/122727906