Auto slider image carousel

Dear @gendelmanliudmila , I would like to inform you that custom CSS can indeed be enabled in Glide Pages. However, a business plan is required for this functionality to be accessible.

Here is a small demo and how to set it up, if you do plan to use it.

Demo Link:

Add this to a rich text element on your screen

<div class="container">
  <div class="carousel">
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
    <div class="carousel__face"></div>
  </div>
</div>

Add this to the custom css section of your app.

.container {
     position: relative;
     width: 320px;
     margin: 100px auto 0 auto;
     perspective: 1000px;
}
 .carousel {
     position: absolute;
     width: 100%;
     height: 100%;
     transform-style: preserve-3d;
     animation: rotate360 60s infinite forwards linear;
}
 .carousel__face {
     position: absolute;
     width: 300px;
     height: 187px;
     top: 20px;
     left: 10px;
     right: 10px;
     background-size: cover;
     box-shadow:inset 0 0 0 2000px rgba(0,0,0,0.5);
     display: flex;
}
 .carousel__face:nth-child(1) {
     background-image: url("https://images.pexels.com/photos/1141853/pexels-photo-1141853.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY( 0deg) translateZ(430px);
}
 .carousel__face:nth-child(2) {
     background-image: url("https://images.pexels.com/photos/1258865/pexels-photo-1258865.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY( 40deg) translateZ(430px);
}
 .carousel__face:nth-child(3) {
     background-image: url("https://images.pexels.com/photos/808466/pexels-photo-808466.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY( 80deg) translateZ(430px);
}
 .carousel__face:nth-child(4) {
     background-image: url("https://images.pexels.com/photos/1394841/pexels-photo-1394841.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY(120deg) translateZ(430px);
}
 .carousel__face:nth-child(5) {
     background-image: url("https://images.pexels.com/photos/969679/pexels-photo-969679.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY(160deg) translateZ(430px);
}
 .carousel__face:nth-child(6) {
     background-image: url("https://images.pexels.com/photos/1834400/pexels-photo-1834400.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY(200deg) translateZ(430px);
}
 .carousel__face:nth-child(7) {
     background-image: url("https://images.pexels.com/photos/1415268/pexels-photo-1415268.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY(240deg) translateZ(430px);
}
 .carousel__face:nth-child(8) {
     background-image: url("https://images.pexels.com/photos/135018/pexels-photo-135018.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY(280deg) translateZ(430px);
}
 .carousel__face:nth-child(9) {
     background-image: url("https://images.pexels.com/photos/1175135/pexels-photo-1175135.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
     transform: rotateY(320deg) translateZ(430px);
}
 @keyframes rotate360 {
     from {
         transform: rotateY(0deg);
    }
     to {
         transform: rotateY(-360deg);
    }
}

You can contact me anytime, if you do need any additional help.

2 Likes