On this page
  1. Settings
  2. Hover effects

Hover box

The CMS element Hover box shows an image with a box made of headline and text. The box appears when the mouse moves over it, for example for extra information about an image. You find it as the block Hover box in the block category Aspina General.

Settings

The defaults are the values a new hover box starts with.

Tab Setting Effect
General Headline, Text Content of the box. The text is required. Without a headline it is left out.
General Image Image of the box. Without an image the storefront does not output the hover box.
General Display mode Original (Standard), Scaled (Stretch) or Cropped (Cover). Default: Cover.
General Minimum height Only visible in display mode Cover, where it is needed, e.g. 340px. Default: 340px.
General Vertical align, Horizontal align Position of the image. Only selectable when the display mode is not Cover. Default: Center.
General Alt text, Mark image as decorative Accessibility of the image. If decorative, the alt attribute stays empty.
General Link to, Open link in new tab Target of the hover box. If a link is entered, the whole box is clickable. Default: no link, no new tab.
General Link description Name of the link for screen readers, only takes effect with a link entered.
Layout Background colour, Maximum width Background and maximum width of the element (Maximum width only selectable if the display mode is not Cover). Default: transparent, none.
Layout Text alignment Alignment of the text in the box. Default: Left.
Layout Headline and text: Font family, Text colour Look of the headline (default: Headlines) and the text (default: Text). Colour white for both.
Layout Vertical alignment Position of the box in the image: Top, Middle or Bottom. Default: Top.
Layout Background colour (Content overlay) Colour of the box behind headline and text. Default: black at 85% opacity.
Layout Hover effect How the box fades or slides in or out. Default: Fade in.
Layout Invert hover effect Reverses the effect: the box is visible first and disappears on hover. Off by default.
SEO & Pagespeed HTML tag (Headline), Use HTML tag as class (Headline) HTML tag of the headline (default: Paragraph, p tag) and the matching headline class (default: h2).
SEO & Pagespeed Lazy loading Eager, Lazy or Priority. Default: Lazy.
Advanced CSS class (Element), CSS class (Headline), CSS class (Text) Your own CSS classes, separated by spaces.

Hover effects

For Hover effect you can choose No effect, Fade in, Slide up, Slide right, Slide down, Slide left, Push up, Push right, Push down, Push left, Hinge up, Hinge right, Hinge down and Hinge left. With Fade in the box fades in, with the Slide effects it moves in from one side over the image.

  • The effects apply from a screen width of 576 pixels. On smaller screens the box is always visible.
  • With Invert hover effect the same effect runs backwards: the box is there first and goes away on hover.
  • The fields Entire element clickable, the box's Horizontal alignment and Horizontal positioning are greyed out in the dialog and currently not available.

Note: According to the help text in the dialog, hover effects are only recommended for clickable elements. Enter a target in the field Link to for that.

Was this page helpful?