Added solution to modify fill mode challenge (#34500)
* Update index.md * Add full solution
This commit is contained in:
committed by
Randell Dawson
parent
d97f0a56a6
commit
a8a7f47e49
@ -3,8 +3,26 @@ title: Modify Fill Mode of an Animation
|
|||||||
---
|
---
|
||||||
## Modify Fill Mode of an Animation
|
## Modify Fill Mode of an Animation
|
||||||
|
|
||||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/responsive-web-design/applied-visual-design/modify-fill-mode-of-an-animation/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
### Solution
|
||||||
|
|
||||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
```html
|
||||||
|
<style>
|
||||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
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>
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user