Last active
June 20, 2017 11:15
-
-
Save rvgpl/c2b2ff286c367ccff639846880ca4afa to your computer and use it in GitHub Desktop.
Gracefully load slides when using Slick carousel
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
.carousel { | |
visibility:hidden; | |
opacity:0; | |
transition: opacity 1s; | |
} | |
.carousel.slick-initialized{ | |
visibility:visible; | |
opacity:1; | |
} | |
.carousel .carousel-item { | |
display:none ; | |
} | |
.carousel .carousel-item:first-child{ | |
display:block; visibility:hidden; | |
} | |
.carousel.slick-initialized .carousel-item{ | |
display:block;visibility:visible!important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment