I have a body gradient background in an html code, and I want it to rotate smoothly. This is the code I have, but it goes only by 2 steps and no substeps.
@keyframes Fond_rotatif {
0% {
background: linear-gradient(110deg, black, #3abbe6 20%, black 20.5%, #1b7a99 50%, black 50.5%, #2d5d6e 100%);
}
100% {
background: linear-gradient(135deg, black, #3abbe6 20%, black 20.5%, #1b7a99 50%, black 50.5%, #2d5d6e 100%);
}
}
body {
background: linear-gradient(135deg, black, #3abbe6 20%, black 20.5%, #1b7a99 50%, black 50.5%, #2d5d6e 100%);
animation-name: Fond_rotatif;
animation-duration: 1.5s;
animation-timing-function: ease-out;
}
Could you help me do it properly?
edit: this is the full html script:
<html>
<head>
<meta charset="utf-8">
<title>Page protégée</title>
</head>
<style>
@keyframes Fond_rotatif {
0% {
background: linear-gradient(110deg, black, #3abbe6 20%, black 20.5%, #1b7a99 50%, black 50.5%, #2d5d6e 100%);
}
100% {
background: linear-gradient(135deg, black, #3abbe6 20%, black 20.5%, #1b7a99 50%, black 50.5%, #2d5d6e 100%);
}
}
body {
background: linear-gradient(135deg, black, #3abbe6 20%, black 20.5%, #1b7a99 50%, black 50.5%, #2d5d6e 100%);
animation-name: Fond_rotatif;
animation-duration: 1.5s;
animation-timing-function: ease-out;
}
#box_reponse {
margin-top: 30px;
border: 1px solid black;
border-radius: 10px;
background-color: #b8b3bad1;
box-shadow: 15px 15px 20px rgb(62, 62, 62);
width: max-content;
margin-left: auto;
margin-right: auto;
text-align: center;
padding-bottom: 15px;
padding-left: 25px;
padding-right: 25px;
}
#Reponse {
line-height: 35px;
font-size: larger;
}
</style>
<body>
<div id="box_reponse"><span id="Reponse">This is a test</span></div>
</body>
</html>