Hiii
I want to add slider effects option to fade in slideshow instead of slide Dawn 15V
Please help me how do i do this. Check the screenshot for the option
Store url: https://5a3cf5-fc.myshopify.com
Hiii
I want to add slider effects option to fade in slideshow instead of slide Dawn 15V
Please help me how do i do this. Check the screenshot for the option
Store url: https://5a3cf5-fc.myshopify.com
hey @arnoldmattt
I am comfortable with coding , please tell me the codes, I will just add them.
hey @BSS-TekLabs please check this issue as well
To add a fade transition option in a slideshow instead of a slide transition in the Dawn 15V theme, you’ll need to modify the theme’s code. Here are the steps to do this:
Locate the Theme Files:
Find the Slideshow Code:
Modify the Transition Code:
Here’s an example of how you might make this change:
Locate the HTML or Liquid code for the slideshow:
Slide 1
Slide 2
Slide 3
Add or modify the CSS to support fading:
.slideshow {
position: relative;
}
.slide {
position: absolute;
top: 0;
left: 0;
opacity: 0;
transition: opacity 1s ease-in-out;
}
.slide.active {
opacity: 1;
}
Modify the JavaScript to handle the fade transition:
document.addEventListener("DOMContentLoaded", function() {
const slides = document.querySelectorAll('.slide');
let currentSlide = 0;
function showNextSlide() {
slides[currentSlide].classList.remove('active');
currentSlide = (currentSlide + 1) % slides.length;
slides[currentSlide].classList.add('active');
}
setInterval(showNextSlide, 3000); // Change slide every 3 seconds
});
This example uses CSS for the fade effect (opacity and transition) and JavaScript to handle the active class toggling.
I sent you the instructions. If you can’t do it, you can message me for help @ctal37 .
@BSS-TekLabs can you do it? am a bit scared what if I mess the things a lot more
hey I tried adding but its not working maybe am adding wrong…