Skip to content

Commit 23d64ff

Browse files
committed
add animation to cards
1 parent 51c701d commit 23d64ff

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

10-homepage-with-cards/css/card.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
margin: 10px;
77
border-radius: 1px;
88
box-shadow: 0 0 10px rgba(0,0,0,0.3);
9+
transition: all 0.3s ease;
10+
}
11+
.card:hover {
12+
margin-top: -5px;
913
}
1014
.card-body {
1115
height: 180px;

10-homepage-with-cards/css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ body {
88
margin-bottom: 100px;
99
font-family: 'Varela Round', sans-serif;
1010
}
11+
h2 {
12+
margin-bottom: 40px;
13+
}
1114
.text-center {
1215
text-align: center;
1316
}

0 commit comments

Comments
 (0)