On this page
Parallax banner
The Parallax banner shows a background image with a title and subtitle over it. The image stays in place while you scroll. You find the block Parallax banner in the shopping experiences in the category Aspina Banners.
Settings
| Tab | Setting | Effect |
|---|---|---|
| General | Title, Subtitle | The text over the image. The title is required, the subtitle is optional. Default: dummy text. |
| General | Image, Minimum height | Required fields: the background image and the minimum height of the banner. The image is shown as a background and fills the area. Default: 340px. |
| General | Link to, Open link in new tab, Link description | Target URL, new tab and the name of the link for screen readers (aria-label, empty = link title). With a link, the whole banner is clickable. |
| Layout | Padding, Border radius, Background colour | Padding around the text block, rounding of the corners and background colour of the element. Default: 15px / 0 / rgba(255, 255, 255, 0). |
| Layout | Text alignment, Text shadow | Alignment of the text and a shadow for the text (no, small, regular or larger shadow). Default: Center / No shadow. |
| Layout | Font family, Font weight, Text formatting, Text colour | In the section Title: font, font weight, text formatting and text colour of the title. Default text colour: #ffffff. |
| Layout | Font family, Text colour | In the section Subtitle: font and text colour of the subtitle. Default text colour: #ffffff. |
| Layout | Attachment, Parallax effect | In the section Image. Both fields are locked ("This configuration is currently not available"). The default Fixed applies. |
| Layout | Vertical alignment, Horizontal alignment, Width, Maximum width | In the section Content overlay: position and size of the text block in the banner, e.g. width 740px or 90%. Default: centred, width auto, maximum width 90%. |
| Layout | Show coloured overlay, Background colour, Use colour gradient, Background colour (2), Gradient direction (in degrees) | In the section Coloured overlay: a coloured area over the image, optionally as a gradient between two colours with a direction in degrees. The colour fields only appear when the overlay is on, the second colour and the direction only with a gradient. Default: on, with a gradient (direction 45). |
| SEO & Pagespeed | HTML tag (Title), HTML tag (Subtitle) | HTML tag of title and subtitle. Choose a paragraph (p) so that search engines do not treat the text as a headline. Default: paragraph (p). |
| SEO & Pagespeed | Use HTML tag as class (Title), Use HTML tag as class (Subtitle) | Gives a p tag the look of a headline (h1 to h6). |
| Advanced | CSS class (Element), CSS class (Title), CSS class (Subtitle) | Your own CSS classes for element, title and subtitle, separated by spaces. |
You can hide the tabs SEO & Pagespeed and Advanced with the switch Advanced configuration at the top of the dialog.
How it behaves in the shop
- The image stays in place while scrolling and the text moves over it. This only applies from 768 px width. On smaller screens and on iOS devices it scrolls along.
- The image is a CSS background image and has no alt text. Put important statements into the title and subtitle.
Note: The coloured overlay is on by default and uses a gradient. Switch it off under Coloured overlay if your image should appear unchanged.