Last active
November 10, 2023 09:34
-
-
Save jasperf/1bd605ae13871fbb968bc03dad4e6379 to your computer and use it in GitHub Desktop.
Elementor Vertical Carousel by Template Monster - https://www.youtube.com/watch?v=MBWP1bRDYN4 and Andrea Egli - https://www.youtube.com/watch?v=i13Az30Kwa8 using CSS Animation . Andrea uses Elementor containers or Flexbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1st Vertical Carousel (left-hand side) | |
.carouselverticalone { | |
animation: looping 10s linear 0s infinite none; | |
} | |
.verticalcolumnone { | |
max-height: 750px; | |
height: 750px; | |
width: 200px; | |
overflow: hidden; | |
-webkit-mask-image: linear-gradient(transparent, black 20%, black 80%, transparent 100%); | |
mask-image: linear-gradient(transparent, black 20%, black 80%, transparent 100%); | |
} | |
@keyframes looping{ | |
0% { | |
transform: translateY(0px); | |
} | |
100% { | |
transform: translateY(-100%); | |
} | |
} | |
@media only screen and (max-width: 360px) { | |
.verticalcolumnone { | |
max-height: 350px; | |
height: 350px; | |
width: 100px; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2ns Vertical Carousel (center) | |
.carouselverticaltwo { | |
animation: looping 12s linear 0s infinite none reverse; | |
animation-direction: reverse; | |
} | |
.verticalcolumntwo { | |
margin-top: 5rem; | |
max-height: 700px; | |
height: 700px; | |
width: 200px; | |
overflow: hidden; | |
-webkit-mask-image: linear-gradient(transparent, black 20%, black 80%, transparent 100%); | |
mask-image: linear-gradient(transparent, black 20%, black 80%, transparent 100%); | |
} | |
@keyframes looping{ | |
0% { | |
transform: translateY(0px); | |
} | |
100% { | |
transform: translateY(-100%); | |
} | |
} | |
@media only screen and (max-width: 360px) { | |
.verticalcolumntwo { | |
max-height: 350px; | |
height: 350px; | |
width: 100px; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 3rd Vertical Carousel (right-hand side) | |
.carouselverticalthree { | |
animation: looping 13s linear 0s infinite none; | |
} | |
.img-one { | |
box-shadow: 0 5px 15px rgba(0,0,0,.2) | |
} | |
.verticalcolumnthree { | |
max-height: 800px; | |
height: 800px; | |
width: 200px; | |
overflow: hidden; | |
-webkit-mask-image: linear-gradient(transparent, black 20%, black 80%, transparent 100%); | |
mask-image: linear-gradient(transparent, black 20%, black 80%, transparent 100%); | |
} | |
@keyframes looping{ | |
0% { | |
transform: translateY(0px); | |
} | |
100% { | |
transform: translateY(-100%); | |
} | |
} | |
@media only screen and (max-width: 360px) { | |
.verticalcolumnthree { | |
max-height: 350px; | |
height: 350px; | |
width: 100px; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ------------------------------------------------- | |
* Vertical Carousel CSS | |
* no glitching with this css by Template Monster | |
* with application of opacity on beginning and end frames | |
*/ | |
/* https://developer.mozilla.org/en-US/docs/Web/CSS/animation */ | |
selector { | |
-webkit-animation: middle-slot 100s linear infinite; | |
-moz-animation: middle-slot 100s linear infinite; | |
-o-animation: middle-slot 100s linear infinite; | |
animation: middle-slot 100s linear infinite; | |
} | |
/* https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes */ | |
@keyframes middle-slot { | |
0% { | |
transform: translate(0,0); | |
opacity:0; | |
} | |
5% { | |
opacity:1; | |
} | |
95% { | |
opacity:1; | |
} | |
100% { | |
transform: translate(0,-1000px); | |
opacity:0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment