css3  transition과 css3 animation을 잘 활용하자.

 

<!DOCTYPE html>
<html>
<head>
<!-- css3-animation test -->
  <style>
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}

@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
  </style>
</head>
<body>
  <div></div>
</body>
</html>

Posted by netyhobby
,