Hello! Below is the code for the gallery, which is simple, but I personally really like it. If you like it too, please use it. So below is the code and a video on how to apply it, if you haven’t done so before.
<html lang="en"><head>
<meta charset="UTF-8">
<style>
@font-face {
font-family: "Roboto";
font-weight: 700;
}
@font-face {
font-family: "Roboto";
font-weight: 500;
}
@font-face {
font-family: "Roboto";
font-weight: 300;
}
body,
html {
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: none;
font-size: 20px;
margin: 0;
padding: 0;
color: #ffffff;
font-family: "Roboto";
overflow-x: hidden;
background: none;
}
* {
box-sizing: border-box;
}
:root {
--image-1: url(IMAGEURL..........................................);
--image-2: url(https://cdn.pixabay.com/photo/2014/12/17/17/19/woman-571715_1280.jpg);
--image-3: url(https://cdn.pixabay.com/photo/2015/03/30/14/36/hands-699486_1280.jpg);
}
.container {
display: flex;
flex-direction: row;
width: 80%;
max-width: 20rem;
gap: 0.5rem;
}
.container .column {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: inherit;
width: 100%;
}
.container .column-1 .item-1 {
height: 4rem;
-webkit-animation: background 5s 150ms infinite ease-in-out;
animation: background 5s 150ms infinite ease-in-out;
}
.container .column-1 .item-2 {
height: 6rem;
-webkit-animation: background 5s 274ms infinite ease-in-out;
animation: background 5s 274ms infinite ease-in-out;
}
.container .column-1 .item-3 {
height: 3rem;
-webkit-animation: background 5s 350ms infinite ease-in-out;
animation: background 5s 350ms infinite ease-in-out;
}
.container .column-2 .item-1 {
height: 4rem;
-webkit-animation: background 5s 150ms infinite ease-in-out;
animation: background 5s 150ms infinite ease-in-out;
}
.container .column-2 .item-2 {
height: 9rem;
-webkit-animation: background 5s 274ms infinite ease-in-out;
animation: background 5s 274ms infinite ease-in-out;
}
.container .column-2 .item-3 {
height: 3rem;
-webkit-animation: background 5s 350ms infinite ease-in-out;
animation: background 5s 350ms infinite ease-in-out;
}
.container .column-3 .item-1 {
height: 6rem;
-webkit-animation: background 5s 280ms infinite ease-in-out;
animation: background 5s 280ms infinite ease-in-out;
}
.container .column-3 .item-2 {
height: 5rem;
-webkit-animation: background 5s 95ms infinite ease-in-out;
animation: background 5s 95ms infinite ease-in-out;
}
.container .column-3 .item-3 {
height: 3rem;
-webkit-animation: background 5s 350ms infinite ease-in-out;
animation: background 5s 350ms infinite ease-in-out;
}
.container .column .item {
width: inherit;
border-radius: 0.5rem;
background-position: center center;
background-attachment: fixed;
background-repeat: no-repeat;
background-size: contain;
}
@-webkit-keyframes background {
0% {
background-image: var(--image-1);
}
30% {
background-image: var(--image-1);
}
33% {
background-image: var(--image-2);
}
63% {
background-image: var(--image-2);
}
66% {
background-image: var(--image-3);
}
96% {
background-image: var(--image-3);
}
100% {
background-image: var(--image-1);
}
}
@keyframes background {
0% {
background-image: var(--image-1);
}
30% {
background-image: var(--image-1);
}
33% {
background-image: var(--image-2);
}
63% {
background-image: var(--image-2);
}
66% {
background-image: var(--image-3);
}
96% {
background-image: var(--image-3);
}
100% {
background-image: var(--image-1);
}
}
</style>
<script>
window.console = window.console || function(t) {};
</script>
</head>
<body translate="no">
<div class="container">
<div class="column column-1">
<div class="item item-1"></div>
<div class="item item-2"></div>
<div class="item item-3"></div>
</div>
<div class="column column-2">
<div class="item item-1"></div>
<div class="item item-2"></div>
<div class="item item-3"></div>
</div>
<div class="column column-3">
<div class="item item-1"></div>
<div class="item item-2"></div>
<div class="item item-3"></div>
</div>
</div>
</body></html>