File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 9
9
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
10
10
crossorigin="anonymous"
11
11
/> -->
12
+ <!-- Add a favicon. -->
13
+ < link rel ="icon " href ="favicon.ico " />
12
14
< link rel ="stylesheet " href ="style.css " />
13
15
< title > Expanding cards</ title >
14
16
</ head >
20
22
background-image: url('https://images.unsplash.com/photo-1610212570473-6015f631ae96?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
21
23
"
22
24
>
23
- < h3 > Explore the world</ h3 >
25
+ <!-- Change the Card Titles -->
26
+ < h3 > Canada</ h3 >
24
27
</ div >
25
28
< div
26
29
class ="panel "
27
30
style ="
28
31
background-image: url('https://images.unsplash.com/photo-1606838830438-5f380a664a4e?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1350&q=80');
29
32
"
30
33
>
31
- < h3 > Explore the world </ h3 >
34
+ < h3 > Argentina </ h3 >
32
35
</ div >
33
36
< div
34
37
class ="panel "
35
38
style ="
36
39
background-image: url('https://images.unsplash.com/photo-1606059100151-b09b22709477?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1778&q=80');
37
40
"
38
41
>
39
- < h3 > Explore the world </ h3 >
42
+ < h3 > Paris </ h3 >
40
43
</ div >
41
44
< div
42
45
class ="panel "
43
46
style ="
44
47
background-image: url('https://images.unsplash.com/photo-1603048675767-6e79ff5b8fc1?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
45
48
"
46
49
>
47
- < h3 > Explore the world </ h3 >
50
+ < h3 > Tokyo </ h3 >
48
51
</ div >
49
52
< div
50
53
class ="panel "
51
54
style ="
52
55
background-image: url('https://images.unsplash.com/photo-1595433502559-d8f05e6a1041?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
53
56
"
54
57
>
55
- < h3 > Explore the world</ h3 >
58
+ < h3 > Brazil</ h3 >
59
+ </ div >
60
+ <!-- Add a New Panel -->
61
+ < div
62
+ class ="panel "
63
+ style ="
64
+ background-image: url('https://images.unsplash.com/photo-1746105625407-5d49d69a2a47?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
65
+ "
66
+ >
67
+ < h3 > Vietnam</ h3 >
56
68
</ div >
57
69
</ div >
58
70
< script src ="script.js "> </ script >
Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ body {
24
24
background-position : center;
25
25
background-repeat : no-repeat;
26
26
height : 80vh ;
27
- border-radius : 50px ;
27
+ /* Adjust Card Corner Style */
28
+ border-radius : 0px ;
28
29
color : # fff ;
29
30
cursor : pointer;
30
31
flex : 0.5 ;
31
32
margin : 10px ;
32
33
position : relative;
33
- transition : flex 0.7s ease-in;
34
- -webkit-transition : all 700ms ease-in;
34
+ /* Modify Transition Speed */
35
+ transition : flex 0.2s ease-in;
36
+ -webkit-transition : all 200ms ease-in;
35
37
}
36
38
37
39
.panel h3 {
50
52
.panel .active h3 {
51
53
opacity : 1 ;
52
54
transition : opacity 0.3s ease-in 0.4s ;
55
+ /* Change Active Panel Text Color */
56
+ color : silver;
53
57
}
54
58
55
59
@media (max-width : 480px ) {
You can’t perform that action at this time.
0 commit comments