-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
42 lines (39 loc) · 820 Bytes
/
style.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
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0;
}
#carousel-container {
perspective: 1000px;
width: 300px;
height: 200px;
}
#carousel {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transform-origin: center;
}
.carousel-item {
position: absolute;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transform-origin: center;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
font-size: 2em;
color: white;
background-color: #3498db;
border-radius: 5px;
cursor: grab;
user-select: none;
}