Skip to content

Commit e811f9c

Browse files
committed
Create style.css
1 parent 095330c commit e811f9c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

image-carousel/style.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
2+
3+
* {
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
font-family: 'Roboto', sans-serif;
9+
display: flex;
10+
align-items: center;
11+
justify-content: center;
12+
height: 100vh;
13+
margin: 0;
14+
}
15+
16+
img {
17+
width: 500px;
18+
height: 500px;
19+
object-fit: cover;
20+
}
21+
22+
.carousel {
23+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
24+
height: 530px;
25+
width: 500px;
26+
overflow: hidden;
27+
}
28+
29+
.image-container {
30+
display: flex;
31+
transform: translateX(0);
32+
transition: transform 0.5s ease-in-out;
33+
}
34+
35+
.buttons-container {
36+
display: flex;
37+
justify-content: space-between;
38+
}
39+
40+
.btn {
41+
background-color: rebeccapurple;
42+
color: #fff;
43+
border: none;
44+
padding: 0.5rem;
45+
cursor: pointer;
46+
width: 49.5%;
47+
}
48+
49+
.btn:hover {
50+
opacity: 0.9;
51+
}
52+
53+
.btn:focus {
54+
outline: none;
55+
}

0 commit comments

Comments
 (0)