scrimba
Note at 2:42
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Note at 2:42
AboutCommentsNotes
Note at 2:42
Expand for more info
index.css
run
preview
console
/*
Thanks to these fine individuals from Unsplash:
https://unsplash.com/photos/AmzKuEnr1VY
https://unsplash.com/photos/eDnJQL21amc
https://unsplash.com/photos/LXy2DOOxESQ
https://unsplash.com/photos/KBKHXjhVQVM
https://unsplash.com/photos/PxM8aeJbzvk
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

html, body {
margin: 0;
padding: 0;
height: 100vh;
font-family: 'Playfair Display';
display: grid;
justify-content: center;
}

img {
width: 200px;
}

.previous, .next {
width: 35px;
}
.previous , .next {
opacity: .3;
}

.previous:hover , .next:hover {
opacity: 1;
}

.container {
display: grid;
grid-template-columns: 20% 200px 20%;
place-content: center;
}

.gallery-wrapper {
overflow: hidden;
width: 100%;
}
.previous, .next {
justify-self: center;
align-self: center;
cursor: pointer;
}

.gallery {
transform-style: preserve-3d;
display: grid;
grid-template-columns: repeat(5, auto);
transform: translateX(0);
transition: transform 0.5s ease-in-out;
}

.card {
margin-right: 20px;
align-self: center;
}
Console
<img
src=
"previous.svg"
class=
"previous"
alt=
"previous image"
>
,
220
,
440
,
660
,
440
,
660
,
880
,
0
,
220
,
440
,
660
,
880
,
0
,
880
,
/index.html
LIVE