top of page
Anchor 1
Example Description
In this example we use two buttons in order to show and hide an image.
How We Built It
Page Elements
In our site we added the following page elements:
An image
Two buttons, one with the ID "showButton" and one with the ID “hideButton”.
Code
In the onReady() function we added two event handlers, one for each button.
When clicking the hide button the image is hidden and when clicking the show button the image is shown again.
Related Examples
Did this help?
|
Thanks for your feedback!
Hide & Show Elements
Hide and show elements in response to user interactions.
Intermediate
Collapse Elements
Collapse and expand groups of elements.
Beginner
Image and Text Animation
Use wix-animations API to animate images and text.
Intermediate
Anchor 2
bottom of page