-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (81 loc) · 1.67 KB
/
style.css
File metadata and controls
83 lines (81 loc) · 1.67 KB
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
* {
margin: 0;
box-sizing: border-box;
padding: 0;
}
body {
background-image: url(https://i.pinimg.com/originals/19/e3/6c/19e36c40786753a1711f06304e18c354.jpg);
background-size: cover;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
height: 100vh;
}
.image-container {
position: relative;
width: 200px;
height: 200px;
transform-style: preserve-3d;
transform: perspective(1000px) rotateY(0deg) ;
transition: transform 1.5s;
& span {
position: absolute;
top: 0;
left: 0;
width: 100%;
transform: rotateY(calc(var(--a) * 45deg)) translateZ(400px);
& img{
position: absolute;
border-radius: 10px;
left:0;
top:0;
width: 100%;
transition: .5s;
&:hover{
transform: scale(2.5);
}
}
}
}
.btn-container{
position: relative;
width: 80%;
& .btn {
position: absolute;
bottom:-80px;
background-color:gold;
color:black;
border:1px solid black;
box-shadow:0 4px 8px rgba(0, 0, 0, 0.495) ;
font-weight: bold;
padding:10px 20px;
border-radius: 5px;
cursor: pointer;
text-transform: capitalize;
transition: 0.7s;
&:hover{
filter: brightness(1.5);
transform: translateY(-2px);
}
}
}
#prev {
left: 20%;
}
#next{
right: 20%;
}
.maker{
position: absolute;
bottom: 5px;
color: rgb(189, 175, 175);
font-size: 20px;
font-family: cursive;
text-transform:capitalize;
font-weight: bold;
& bre{
font-size: 15px;
}
}