Zoom view zoom-view

Main view consists of the zoomable image.

CSS properties of the main viewer area

The appearance of the viewing area is controlled with the following CSS class selector:

.s7zoomviewer .s7zoomview
CSS property
Description
background-color
Background color in hexadecimal format of the main view.
cursor
Cursor displayed over the main view.

Example - To make the main view transparent.

.s7zoomviewer .s7zoomview {
 background-color: transparent;
}

On desktop systems the component supports cursortype attribute selector which can be applied to the .s7zoomview class. It controls the type of the cursor based on component state and user action. The following cursortype values are supported:

  • default

    Displayed when the image is not zoomable because of a small image resolution, or component settings, or both.

  • zoomin

    Displayed when the image can be zoomed in.

  • reset

    Displayed when the image is at maximum zoom level and can be reset to its initial state.

  • drag

    Displayed when the user pans the image which is in zoomed in state.

  • slide

    Displayed when the user performs image swap by doing a horizontal swipe or flick.

recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8