Skip to content

Commit 19f46ea

Browse files
committed
Update css-practice.md
1 parent cf1c866 commit 19f46ea

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

css-practice.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,26 @@ Pick ONE OR MORE options
10181018
4. .greyBall:hover {transform: scale(2); animate: 0.5S;}
10191019
```
10201020

1021+
<details><summary><b>Answer</b></summary>
1022+
1023+
```css
1024+
.greyBall:hover {
1025+
transform: scale(2);
1026+
transition: 500ms transform;
1027+
}
1028+
```
1029+
1030+
```css
1031+
.greyBall:hover {
1032+
transform: scale(2);
1033+
transition: 0.5s;
1034+
}
1035+
```
1036+
1037+
**&#9885; [Try this example on CodeSandbox](https://codesandbox.io/s/css-animation-j0l6yb?file=/src/styles.css)**
1038+
1039+
</details>
1040+
10211041
<div align="right">
10221042
<b><a href="#">↥ back to top</a></b>
10231043
</div>

0 commit comments

Comments
 (0)