How can I change my Craft slideshow to a fade transition?
Topic summary
A user asks how to implement a fade transition for a Craft theme slideshow on Shopify.
Primary Solution:
- Add CSS code to
component-slideshow.cssthat disables scroll-snap behavior and applies afadeInkeyframe animation (5-second duration) to visible slides - The CSS targets
slideshow-component .slideshow.bannerelements
Alternative Approach:
- Another contributor suggests adding code to a custom liquid section (includes a reference image showing implementation)
Follow-up Question:
- A subsequent user asks whether the fade can be modified to a crossfade effect with the initial slide starting at full opacity
Status: The original question has received working solutions, but the crossfade variation remains unanswered.
Hi @rwilleby ,
Go to Assets > component-slideshow.css and paste this at the bottom of the file:
slideshow-component .slideshow.banner{
scroll-snap-type: none !important;
scroll-behavior: auto !important;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
slideshow-component .slideshow.banner [aria-hidden="false"] {
animation: fadeIn 5s;
}
Hope it helps!
1 Like
Hello @rwilleby
I would like to give you some recommendations to support you.
You can add this code to a custom liquid section
Like image
Hope my recommendation can works and support for you!
Kind & Best regards!
GemPages
Is it possible to make this a cross fade with the initial slide starting at 100% opacity?
