* fix: restructure certifications guide articles * fix: added 3 dashes line before prob expl * fix: added 3 dashes line before hints * fix: added 3 dashes line before solutions
34 lines
561 B
Markdown
34 lines
561 B
Markdown
---
|
|
title: Modify Fill Mode of an Animation
|
|
---
|
|
# Modify Fill Mode of an Animation
|
|
|
|
|
|
---
|
|
## Solutions
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
|
|
|
```html
|
|
<style>
|
|
button {
|
|
border-radius: 5px;
|
|
color: white;
|
|
background-color: #0F5897;
|
|
padding: 5px 10px 8px 10px;
|
|
}
|
|
button:hover {
|
|
animation-name: background-color;
|
|
animation-duration: 500ms;
|
|
animation-fill-mode: forwards;
|
|
}
|
|
@keyframes background-color {
|
|
100% {
|
|
background-color: #4791d0;
|
|
}
|
|
}
|
|
</style>
|
|
<button>Register</button>
|
|
```
|
|
|
|
</details> |