Hello i have this div with linear-gradient().
On hover the div takes 2 seconds to expand to 200px width and to ad blue and green
to the linear-gradient().
But blue and green are added immediately while it does take 2 seconds to expand.
Does anyone know the answer to that.
Here is my code.
div {
  background-image: linear-gradient( to right, red, yellow);
  background-color: red;
  width: 100px;
  border: 2px solid black;
  border-radius: 5px;
  transition: 1s;
}
div:hover {
  width: 200px;
  background-image: linear-gradient( to right, red, yellow, blue, green);
}<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>test</title>
</head>
<body>
    <div>hello world</div>
</body>
</html>Also i would like the blue to appear first and then the green.
 
     
    