Thanks Massa, I’m currently using an animated GIF, but was hoping to see if it is possible to use javascript animation on an image to acheive this without using a animated GIF?
you can try using the onViewPortEnter() and onViewPortLeave() , then hide and show the element using the animation and duration you want, here’s how it would look like :
export function vectorImage2_viewportEnter(event) {
//Add your code for this event here:
setTimeout(function(){ $w('#vectorImage2').hide('bounce');}, 30);
}
export function vectorImage2_viewportLeave(event) {
//Add your code for this event here:
setTimeout(function(){ $w('#vectorImage2').show('bounce');}, 30);
}
Hi Massa, this only works for me in preview mode. It works only for a second when published. I also created a custom menu with a lightbox but when it’s published, I get a javasript:void() error when I click on the menu button linked to it. Is there a fix for this please?