Professional Documents
Culture Documents
CARROSEL
CARROSEL
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Carousel</title>
<style>
@import url("https://fonts.googleapis.com/css2?
family=Inter:wght@400;500&display=swap");
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Inter, sans-serif;
height: 100vh;
color: white;
background-color: #e9e9f0;
display: flex;
justify-content: center;
align-items: center;
}
img {
width: 100%;
height: 100%;
display: block;
}
.container {
width: 100%;
width: 820px;
height: 340px;
display: flex;
gap: 10px;
margin-inline: 50px;
}
.card {
min-width: 70px;
height: 100%;
border-radius: 30px;
overflow: hidden;
display: flex;
align-items: flex-end;
flex-grow: 1;
cursor: pointer;
position: relative;
transition: flex-grow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
--transition-timing: 0.35s;
}
/* .card.active {
flex-grow: 100;
} */
.card:hover {
flex-grow: 7;
}
.card-content > * {
transition: var(--transition-timing);
}
</style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mg</title>
<link rel="stylesheet" href="./styles.css">
<script src="./script.js" defer></script>
</head>
<header>
</header>
<div class="container">
<div class="card">
<img class="background"
src="https://www.adrenaline.com.br/wp-content/uploads/2024/03/Desenvolvimento-de-
GTA-6-esta-atrasado-e-jogo-pode-ser-adiado-912x569.jpg" alt="">
<div class="card-content">
<div class="profile-image">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-
linejoin="round" class="lucide lucide-gamepad-2">
<line x1="6" x2="10" y1="11" y2="11" />
<line x1="8" x2="8" y1="9" y2="13" />
<line x1="15" x2="15.01" y1="12" y2="12" />
<line x1="18" x2="18.01" y1="10" y2="10" />
<path d="M17.32 5H6.68a4 4 0 0 0-3.978
3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5
2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3
0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32
5z" />
</svg>
</div>
<div class="card">
<img class="background"
src="https://www.adrenaline.com.br/wp-content/uploads/2024/03/Desenvolvimento-de-
GTA-6-esta-atrasado-e-jogo-pode-ser-adiado-912x569.jpg" alt="">
<div class="card-content">
<div class="profile-image">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-
linejoin="round" class="lucide lucide-gamepad-2">
<line x1="6" x2="10" y1="11" y2="11" />
<line x1="8" x2="8" y1="9" y2="13" />
<line x1="15" x2="15.01" y1="12" y2="12" />
<line x1="18" x2="18.01" y1="10" y2="10" />
<path d="M17.32 5H6.68a4 4 0 0 0-3.978
3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5
2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3
0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32
5z" />
</svg>
</div>
<div class="card">
<img class="background"
src="https://www.adrenaline.com.br/wp-content/uploads/2024/03/Desenvolvimento-de-
GTA-6-esta-atrasado-e-jogo-pode-ser-adiado-912x569.jpg" alt="">
<div class="card-content">
<div class="profile-image">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-
linejoin="round" class="lucide lucide-gamepad-2">
<line x1="6" x2="10" y1="11" y2="11" />
<line x1="8" x2="8" y1="9" y2="13" />
<line x1="15" x2="15.01" y1="12" y2="12" />
<line x1="18" x2="18.01" y1="10" y2="10" />
<path d="M17.32 5H6.68a4 4 0 0 0-3.978
3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5
2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3
0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32
5z" />
</svg>
</div>
<div class="card">
<img class="background"
src="https://www.adrenaline.com.br/wp-content/uploads/2024/03/Desenvolvimento-de-
GTA-6-esta-atrasado-e-jogo-pode-ser-adiado-912x569.jpg" alt="">
<div class="card-content">
<div class="profile-image">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-
linejoin="round" class="lucide lucide-gamepad-2">
<line x1="6" x2="10" y1="11" y2="11" />
<line x1="8" x2="8" y1="9" y2="13" />
<line x1="15" x2="15.01" y1="12" y2="12" />
<line x1="18" x2="18.01" y1="10" y2="10" />
<path d="M17.32 5H6.68a4 4 0 0 0-3.978
3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5
2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3
0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32
5z" />
</svg>
</div>
<div class="card">
<img class="background"
src="https://www.adrenaline.com.br/wp-content/uploads/2024/03/Desenvolvimento-de-
GTA-6-esta-atrasado-e-jogo-pode-ser-adiado-912x569.jpg" alt="">
<div class="card-content">
<div class="profile-image">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-
linejoin="round" class="lucide lucide-gamepad-2">
<line x1="6" x2="10" y1="11" y2="11" />
<line x1="8" x2="8" y1="9" y2="13" />
<line x1="15" x2="15.01" y1="12" y2="12" />
<line x1="18" x2="18.01" y1="10" y2="10" />
<path d="M17.32 5H6.68a4 4 0 0 0-3.978
3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5
2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3
0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32
5z" />
</svg>
</div>