On this page
Image teaser
The CMS element Image teaser shows an image without text that you can link. You can style it with image effects and a coloured overlay. You find it as the block Image teaser in the block category Aspina General.
Settings
The defaults are the values a new image teaser starts with.
| Tab | Setting | Effect |
|---|---|---|
| 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. If decorative, the alt attribute stays empty. |
| General | Link to, Open link in new tab | Target of the teaser. If a link is entered, the whole image is clickable. Default: no link, no new tab. |
| General | Link description | Name of the link for screen readers. |
| Layout | Border radius, Background colour, Maximum width | Rounding, background and maximum width of the element (Maximum width only selectable if the display mode is not Cover). Default: 0, transparent, none. |
| Layout | Horizontal positioning | Image crop left, centre or right. Only selectable in display mode Cover. Default: Center. |
| Layout | Image effect | None, Blur, Brightness, Contrast, Grayscale, Opacity, Saturation or Scale. Default: None. |
| Layout | Value fields for the effect | Strength of the chosen effect. Default: Blur 5 (px, 1 to 100), Brightness 125%, Contrast 125%, Grayscale 100%, Opacity 75%, Saturate 125%, Scale 110%. The field Blur (px) only appears for the Blur effect. |
| Layout | Hover effect (Image) | None, effect when entering (in) or when leaving (out) the element. Only selectable if an image effect is set. Default: None. |
| Layout | Show coloured overlay | Colour layer above the image, optionally with a gradient (second colour, direction 0 to 360 degrees). Off by default. When on: black at 85% opacity, no gradient, 45 degrees. |
| SEO & Pagespeed | Lazy loading | Eager, Lazy or Priority. Default: Lazy. |
| Advanced | CSS class (Element) | Your own CSS classes, separated by spaces. |
Image effects and hover
- Without Hover effect (Image) the Image effect always applies.
- With in the image looks normal and only gets the effect on hover. With out it has the effect first and loses it on hover.
- The effects run with a short transition.
- 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. Enter a target in the field Link to for that.
Note: The field Entire element clickable is greyed out in the dialog and currently not available. The image is clickable as soon as you enter a target in the field Link to.