Content Carousel
A content carousel component provides a solution for placing text or other content bove an image. With responsive and dynamic content in mind , there is two element configurations for setting the height of the slide. One which fits to the content, and one which fits to the image.Our recommendation is use the content fit when you have a large amount of text, descriptive content, etc. Note: that in this case your background image should be a generic pattern or design.On the other hand you should use the image fit when you have only a single line or so of text, a simple header or button, html5 video or any content which would take up less space than your image or video.For any content carousel item, you can also apply the class of backdrop
which will apply a slight opaque grey background to the content. This is useful when your images do not have enough contrast with your text.
Content Carousel (content fit)
To create a content fit, we use a background-image on the outermost element of our item. One could of course not set the background-image and the carousel item will still fit the content, but you will have to be aware of issues between the carousel container’s background color and your content.
Content Carousel (image fit)
To create an image fit, we use an image element contained within our item. If the image element is missing the item will simply fallback to being a content fit item. Warn: if the image url is broken or pointing to the wrong location, the element will have 0 height.
Attention
On any page with this message displayed you can click the button to view this page in the Version 5 format.