4.9.3 • Published 3 years ago

mjml-carousel-node6 v4.9.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

mj-carousel

mj-carousel displays a gallery of images or "carousel". Readers can interact by hovering and clicking on thumbnails depending on the email client they use.

This component enables you to set the styles of the carousel elements.

<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-carousel>
          <mj-carousel-image src="https://www.mailjet.com/wp-content/uploads/2016/11/ecommerce-guide.jpg" />
          <mj-carousel-image src="https://www.mailjet.com/wp-content/uploads/2016/09/3@1x.png" />
          <mj-carousel-image src="https://www.mailjet.com/wp-content/uploads/2016/09/1@1x.png" />
        </mj-carousel>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>
attributeunitdescriptiondefault value
alignstringhorizontal alignmentcenter
background-colorstringcolumn background colornone
border-radiuspxborder radiusn/a
css-classstringclass name, added to the root HTML element createdn/a
icon-widthpxwidth of the icons on left and right of the main image44px
left-iconurlicon on the left of the main imagehttps://mjml.io/assets/img/left-arrow.png
right-iconurlicon on the right of the main imagehttps://mjml.io/assets/img/right-arrow.png
tb-bordercss border formatborder of the thumbnailsnone
tb-border-radiuspxborder-radius of the thumbnailsnone
tb-hover-border-colorstringcss border color of the hovered thumbnailnone
tb-selected-border-colorstringcss border color of the selected thumbnailnone
tb-widthpxthumbnail widthnull
thumbnailsStringdisplay or not the thumbnails (visiblehidden)

mj-carousel-image

This component enables you to add and style the images in the carousel.

attributeunitdescriptiondefault value
altstringimage descriptionn/a
css-classstringclass name, added to the root HTML element createdn/a
hrefurllink to redirect to on clickn/a
relstringspecify the rel attributen/a
srcurlimage sourcen/a
targetstringlink target on click_blank
thumbnails-srcurlimage source to have a thumbnail different than the image it's linked tonull
titlestringtooltip & accessibilityn/a