-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPokemonCards.css
70 lines (69 loc) · 1.14 KB
/
PokemonCards.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
*{
margin: 0%;
padding: 0%;
}
html,body{
height: 100%;
width: 100%;
}
#main{
height: 100%;
width: 100%;
/* display: flex;
align-items: center;
justify-content: center; */
/* ye hai pahla tareeka */
}
.card{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
height: 300px;
width: 230px;
border:1px solid black;
border-radius: 20px;
overflow: hidden;
}
#card1{
z-index: 5;
transform: translate(-50%, -50%);
background-color: yellow;
}
#card2{
z-index:4;
transform: translate(-50%,-50%) rotate(-7deg);
background-color: green;
}
#card3{
z-index: 3;
transform: translate(-50%,-50%) rotate(-14deg);
background-color: red;
}
#card4{
z-index: 2;
transform: translate(-50%,-50%) rotate(-21deg);
background-color: purple;
}
#card5{
z-index:1;
transform: translate(-50%,-50%) rotate(-28deg);
background-color: aqua;
}
#card2:hover{
z-index: 10;
}
#card3:hover{
z-index: 10;
}
#card4:hover{
z-index: 10;
}
#card5:hover{
z-index:10 ;
}
img{
height: 100%;
width: 100%;
object-fit: cover;
}