Skip to main content

Block Carousel

The <qds-web-bloc-carousel> is the component that enables users to navigate horizontally to view a series of blocks.

Overview

Common usage

Use the qds-web-block-carousel component in the following situations:

  1. Limited Space: When you need to display multiple pieces of content within a limited space efficiently.

  2. Visual Appeal: To create a visually engaging experience, such as showcasing a portfolio, featured products, or image galleries.

  3. Highlighting Promotions: To feature rotating promotions, announcements, or Special offers without overwhelming the user.

Avoid using the qds-web-block-carousel component in the following situations:

  1. Critical Content: If the content is vital and needs to be immediately visible, a carousel might hide important information.

  2. User Engagement: When you require user interaction or engagement with all pieces of content, as users might overlook some slides.

  3. Accessibility Concerns: Carousels can be challenging for users with disabilities, especially those relying on screen readers or keyboard navigation.

  4. SEO Importance: If SEO is a priority, content within carousels may be less visible to search engines compared to static content.

  5. Performance Issues: On low-bandwidth connections or less powerful devices, carousels can impact loading times and performance.

  6. Complexity: If the implementation or maintenance of a carousel adds unnecessary complexity to your project.

Usability guidelines

Try to avoid auto-rotation on mobile. It should be placed on the top of the content.

Find more information about the [block hero][] and [block promo][] components in its documentation page.

Properties

blockType

The blockType property is necessary to indicate the type of block that will be slided and correctly place the indicator.

Note: The carousel should only contain one type of block: [block hero][] or [block promo][]. Do not mix them.

id

The id global attribute defines an identifier (ID) which must be unique in the whole document.

Definition from the [MDN web docs][]