-
Notifications
You must be signed in to change notification settings - Fork 0
/
can.css
48 lines (39 loc) · 781 Bytes
/
can.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
body {
font-family: Poppins;
margin: 0;
background-color: #010101;
color: #eee;
}
.banner{
height: 100vh;
overflow: hidden;
position: relative;
}
.banner .product{
position: absolute;
background-color: rgb(0, 0, 0);
left: 60%;
transform: translateX(-50%);
bottom: 170px;
z-index: 10;
width: 500px;
height: 500px;
transition: 1s;
--left:0px;
}
.banner .product .soda{
background:
url(cherry.png) var(--left) 0,
url(soda.png);
background-size: auto 100%;
width: 280px;
height: 579px;
aspect-ratio: 2/4;
background-blend-mode: multiply;
mask-image: url(soda.png);
mask-size: auto 100%;
transition: 1s;
}
.banner .product:hover{
--left: -900px;
}