- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Pre- and post-animation state: animation-fill-mode, step 1</title>
<meta charset="utf-8">
<link rel="stylesheet" href="epoch3.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="scientific">
<div class="sign"></div>
<div class="tube">
<span class="bubbles"></span>
<span class="reagent"></span>
</div>
<div class="tube">
<span class="bubbles"></span>
<span class="reagent experimental-reagent"></span>
</div>
</body>
</html>
CSS
.bubbles {
animation-name: blink;
animation-duration: 2s;
}
@keyframes blink {
50% {
opacity: 1;
}
}
@keyframes reaction {
0% {
background-color: #01ff70;
}
100% {
background-color: #ff4136;
}
}
You’ve gone to a different page
Goalscompleted
0
- Assign the
reaction
animation to both.reagent
chemicals with a duration of3s
and a playback delay of2s
, - and then make the experimental chemical
.experimental-reagent
save its state after animation.
Comments