Overview
The OnClick Zoom Image Reactive O11 is a versatile OutSystems Web Block that enables a zoom effect on images contained within a PlaceholderImage. When an image is clicked, a zoom in/out effect is triggered based on a customizable scale. The component is designed to prevent the default browser action on image click, ensuring a smooth and responsive zoom experience.
Key Features
Parameters
Scale
Usage
How It Works
The component attaches a click event to all images within the PlaceholderImage container. When clicked, the image toggles between zoomed in and its original state. The zoom level is determined by the Scale parameter, offering flexible control over the zoom effect.
Example
If you set the Scale parameter to 3, clicking an image will enlarge it by three times its original size. Clicking the image again will restore it to its normal size.