The <qds-web-bloc-carousel>
is the component that enables users to navigate
horizontally to view a series of blocks.
Overview
Common usage
When to use Block Carousel?
Use the qds-web-block-carousel
component in the following situations:
Limited Space: When you need to display multiple pieces of content
within a limited space efficiently.
Visual Appeal: To create a visually engaging experience, such as
showcasing a portfolio, featured products, or image galleries.
Highlighting Promotions: To feature rotating promotions, announcements,
or Special offers without overwhelming the user.
When not to use Block Carousel?
Avoid using the qds-web-block-carousel
component in the following situations:
Critical Content: If the content is vital and needs to be immediately
visible, a carousel might hide important information.
User Engagement: When you require user interaction or engagement with
all pieces of content, as users might overlook some slides.
Accessibility Concerns: Carousels can be challenging for users with
disabilities, especially those relying on screen readers or keyboard
navigation.
SEO Importance: If SEO is a priority, content within carousels may be
less visible to search engines compared to static content.
Performance Issues: On low-bandwidth connections or less powerful
devices, carousels can impact loading times and performance.
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.
The id global attribute defines an identifier (ID) which must be unique in the
whole document.
— Definition from the [MDN web docs][]