On this page
  1. Settings
  2. Hover effect for the content

Hero teaser

The CMS element Hero teaser shows an image with a headline, text and button on top. You find it as the block Hero teaser in the block category Aspina General.

Settings

The defaults are the values a new hero teaser starts with.

Tab Setting Effect
General Headline, Text, Button text Content of the teaser. The text is required. Without button text there is no button.
General Image Image of the teaser. Without an image the storefront does not output the teaser.
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 teaser. Default: #, no new tab.
General Entire element clickable On: the whole teaser is a link. Off: only the button. Off by default.
General Link description Name of the link for screen readers. Only takes effect when Entire element clickable is on.
Layout Padding, Border radius, Background colour, Maximum width Spacing, rounding, background and maximum width of the element (Maximum width only selectable if the display mode is not Cover). Default: 15px, 0, transparent, none.
Layout Text alignment Alignment of the text. Default: Center.
Layout Headline and text: Font family, Text colour Look of the headline (default: Headlines) and the text (default: Text). Colour white for both.
Layout Button style, Outline button Style of the button. Default: Primary, no outline.
Layout Horizontal positioning Image crop left, centre or right. Only selectable in display mode Cover. Default: Center.
Layout Vertical alignment, Horizontal alignment, Width, Maximum width Position and size of the content on the image. Default: Middle, Center, auto, 90%.
Layout Apply overlay styling Puts a panel behind the content. You then set the background colour, Backdrop effect (blur), Box shadow and Rounded corners. Off by default.
Layout Hover effect (Content) Animation of the content on hover. Default: No effect.
Layout Show coloured overlay Colour layer above the image, optionally with a gradient (second colour, direction 0 to 360 degrees). On by default, gradient from yellow to red at 45 degrees.
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: h3).
SEO & Pagespeed Lazy loading Eager, Lazy or Priority. Default: Lazy.
Advanced CSS class (Element), CSS class (Headline), CSS class (Text), CSS class (Button) Your own CSS classes, separated by spaces.

Hover effect for the content

With Hover effect (Content) you show the headline, text and button only on hover. You can choose Fade in, Slide in up, Slide in right, Slide in down, Slide in left, Zoom in and Fade out.

  • With every effect except Fade out, the content is invisible at first and appears on hover. With Fade out it is visible and disappears.
  • The effects apply from a screen width of 576 pixels. On smaller screens the content always stays visible.
  • The field Hover effect (Coloured overlay) is greyed out in the dialog and currently not available.

Tip: According to the help text in the dialog, hover effects are only recommended for clickable elements.

Note: Do not use links in the Text if Entire element clickable is on.

Was this page helpful?