-
Notifications
You must be signed in to change notification settings - Fork 0
/
card-visa.css
92 lines (82 loc) · 1.57 KB
/
card-visa.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family:Arial, Helvetica, sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container-card {
cursor: pointer;
overflow: hidden;;
position: relative;
color: rgb(152, 154, 155);
padding: 40px;
background-color: rgb(11, 10, 10);
width: 520px;
border-radius: 20px;
box-shadow: 5px 10px 20px rgba(0, 0, 0,0.5);
display: flex;
flex-direction: column;
transform: rotate(0deg);
transition: transform 500ms 200ms;
}
.container-card:hover {
transform: rotate(4deg);
}
.item-1 {
display: flex;
justify-content: space-between;
}
.chip {
margin-top: 15px;
}
.number-card {
margin-top: 15px;
font-size: 2.1rem;
font-weight:lighter;
text-align: justify;
}
.number-second-card {
font-size: 1rem;
margin-left: 4px;
}
.date-exp-card{
color: rgb(152, 154, 155);
margin-top: 4px;
font-size: 1.6rem;
font-weight:lighter;
text-align: right;
margin-right: 40px;
}
.user-name-card{
color: rgb(210, 213, 215);
margin-top: 15px;
font-size: 1.6rem;
font-weight:lighter;
}
.container-card::before {
content: '';
position:absolute;
background: rgba(168, 152, 152, 0.2);
width: 80px;
height: 100%;
top: 0;
left: -400px;
transform: skew(40deg);
}
.container-card:hover::before {
animation: shine 1s 2 ease-in-out backwards;
}
@keyframes shine {
0% {
left: -400px;
}
100% {
left: 800px;
}
}