-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
91 lines (88 loc) · 2.01 KB
/
style.scss
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
*,
::before
::after{
margin: 0 auto;
padding: 0;
box-sizing: border-box;
}
.card{
background-size: cover;
background-color: black;
box-shadow: 0px 0px 10px rgba(64, 66, 68, 0.664);
position: relative;
&:hover::before{
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
background: linear-gradient(rgba(143, 23, 2, 0.829),rgba(110, 1, 1, 0.849));
inset: -0.5rem;
z-index: -1;
filter: blur(2em);
}
img.card-img-top{
height: 100%;
position: relative;
object-fit: cover;
background-size: cover;
&::before{
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
}
img.img-fluid{
position: relative;
&::before{
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
}
}
.wrapper{
height: 100vh;
.camera{
width: 100%;
height: 500px;
perspective: 1000px;
&:hover .card{
transform: rotateY(180deg);
}
.card{
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transition: all 0.8s ease-in-out;
}
.front{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
backface-visibility: hidden;
border-radius: 20px;
overflow: hidden;
}
.back{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
backface-visibility: hidden;
border-radius: 20px;
overflow: hidden;
transform: rotateY(180deg);
}
}
}