Skip to content

Commit c4ad7a9

Browse files
authored
🎨 Add fade animation to cards (#42)
1 parent f8dbd03 commit c4ad7a9

File tree

2 files changed

+112
-109
lines changed

2 files changed

+112
-109
lines changed

components/Card/style.module.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@value colors: "../../styles/colors.css";
22
@value blue from colors;
3+
@value orange from colors;
34

45
.card {
56
margin: 1rem;
@@ -11,14 +12,16 @@
1112
text-decoration: none;
1213
border: 1px solid #eaeaea;
1314
border-radius: 10px;
14-
transition: color 0.15s ease, border-color 0.15s ease;
15+
transition: ease 0.15s;
1516
}
1617

17-
.card:hover,
1818
.card:focus,
19-
.card:active {
20-
color: blue;
21-
border-color: blue;
19+
.card:active,
20+
.card:hover {
21+
color: orange;
22+
border-color: orange;
23+
background-color: white;
24+
box-shadow: inset 0 0 0 2px orange, inset 0 100px 0 0 white, inset 0 100px 0 0 orange;
2225
}
2326

2427
.card h3 {

package-lock.json

Lines changed: 104 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)