$w.onReady(function () {
// Cache l’image de chargement au chargement de la page
$w(‘#mobileImage11’).hide();
// Lorsque le bouton est cliqué
$w('#button21').onClick(() => {
// Affiche l'image de chargement
$w('#mobileImage11').show();
// Simuler un délai de chargement (3 secondes ici)
setTimeout(() => {
// Masque l'image de chargement après 3 secondes
$w('#mobileImage11').hide();
}, 3000);
});
});
Product:
[Which editor or feature is your question most relevant to? e.g. Wix Editor, Wix Studio Editor, Editor X.]
What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]
What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]
Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]