* {
margin
:
0
;
padding
:
0
;
box-sizing: border-box;
}
body {
min-height
:
100
vh;
display
: flex;
flex-
direction
: column;
justify-
content
:
center
;
align-items:
center
;
background
:
rgb
(
47
,
255
,
141
);
}
header {
display
: flex;
flex-
direction
: column;
align-items:
center
;
justify-
content
:
center
;
}
header h
1
{
background-color
:
#fff
;
padding
: .
2em
.
5em
;
border-radius:
1em
;
color
:
green
;
font-size
:
2
rem;
margin-bottom
:
10px
;
}
main {
height
:
500px
;
width
:
100%
;
display
: flex;
flex-
direction
: column;
align-items:
center
;
font-size
:
1.5
rem;
position
:
relative
;
}
main p {
color
:
white
;
font-family
:
sans-serif
;
}
.main-container {
position
:
absolute
;
display
: flex;
top
:
70%
;
column-gap:
30px
;
}
.image-container {
position
:
relative
;
height
:
50px
;
width
:
50px
;
cursor
:
pointer
;
border-radius:
50%
;
box-shadow:
0
0
10px
black
;
}
.thumbnail img {
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform: translate(
-50%
,
-50%
);
width
:
100%
;
object-fit: cover;
border-radius:
50%
;
}
.main-image {
height
:
200px
;
width
:
200px
;
position
:
absolute
;
left
:
50%
;
transform: translateX(
-53%
);
z-index
:
0
;
pointer-events:
none
;
outline
:
2px
solid
black
;
border-radius:
10px
;
box-shadow:
5px
5px
10px
5px
rgba(
0
,
0
,
0
,
0.308
);
transition: transform
0.5
s ease, z-index
0
s,
left
0.5
s ease;
transition-delay:
0
s,
0.5
s,
0.5
s;
}
.image-container:not(:last-child):hover .main-image {
left
:
-150px
;
z-index
:
10
;
transform: translateX(
70px
);
transition:
left
0.5
s ease, z-index
0
s, transform
0.5
s ease;
transition-delay:
0
s,
0.5
s,
0.5
s;
}
.main-image img {
height
:
100%
;
width
:
100%
;
border-radius:
10px
;
object-fit: cover;
}
.main-image::before {
content
:
''
;
position
:
absolute
;
height
:
30px
;
width
:
30px
;
background
:
white
;
left
:
50%
;
bottom
:
-10px
;
border-radius:
120px
120px
120px
10px
;
transform: rotate(
-45
deg) translateX(
-50%
);
border-bottom
:
2px
solid
black
;
border-left
:
2px
solid
black
;
z-index
:
-1
;
}
.main-container .image-container:nth-child(
1
) .main-image {
bottom
:
105px
;
}
.main-container .image-container:nth-child(
2
) .main-image {
bottom
:
100px
;
}
.main-container .image-container:nth-child(
3
) .main-image {
bottom
:
95px
;
}