Carlos, I’m not sure how counting number of clicks applies to his problem. I have a series of show() and hide() that should make GIFs 1, 2,3 and 4 appear and disappear on screen. However, only GIF1 hides, GIF2,3 and 4 continue to show.
Here is my revised code, it still doesn’t work. Any help will be appreciated.
$w.onReady( function () {
let fadeOption1 = {
“duration”: 0,
“delay”: 100
};
let fadeOption2 = {
“duration”: 0,
“delay”: 500
};
let fadeOption3 = {
“duration”: 0,
“delay”: 1000
};
$w(‘#button1’).onClick((event) => {
$w(‘#image1’).hide();
})
$w(‘#button1’).onClick((event) => {
$w(‘#image2’).show(“fade”, fadeOption1);
})
$w(‘#button1’).onClick((event) => {
$w(‘#image2’).hide(“fade”, fadeOption2);
})
$w(‘#button1’).onClick((event) => {
$w(‘#image3’).show(“fade”, fadeOption2);
})
$w(‘#button1’).onClick((event) => {
$w(‘#image3’).hide(“fade”, fadeOption3);
})
$w(‘#button1’).onClick((event) => {
$w(‘#image4’).show(“fade”, fadeOption3);
})
});