Hello,
I’ve created a slideshow with 2 slides. Additionally i’ve put in place 2 buttons overtop of it.
What i’m trying to do is link each button to a slide. For example when you click the first button it brings the slideshow to slide1, and when you press the second button it brings the slideshow to slide2… and you can continue to alternate between each slide this way.
Here is the code I currently have… i’m new to coding so it might be completely off haha!
export function button52_click(event) {
// This function was added from the Properties & Events panel. To learn more, visit Velo: Working with the Properties & Events Panel | Help Center | Wix.com
// Add your code for this event here:
$w.onReady(() => {
$w( “#button53” ).onClick(event => {
$w( “#button53” ).onClick ? $w( “#fullWidthSlides1” )
})
})
}
export function button53_click(event) {
// This function was added from the Properties & Events panel. To learn more, visit Velo: Working with the Properties & Events Panel | Help Center | Wix.com
// Add your code for this event here:
$w.onReady(() => {
$w( “#button53” ).onClick(event => {
$w( “#button53” ).onClick ? $w( “#fullWidthSlides2” )
})
})
}