carousel: Carousel

Description Usage Arguments See Also Examples

Description

The first MJML interactive component, it displays a gallery of images or "carousel". Readers can interact by hovering and clicking on thumbnails depending on the email client they use.

Usage

1
2
3

Arguments

...

Unnamed items that comprise this list of MJML tags.

src

image source.

See Also

https://mjml.io/documentation/#mjml-carousel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
mj_ml(
  mj_body(
    mj_column(
      mj_carousel(
        mj_carousel_image(paste0("https://media.vanityfair.com/photos/",
                                 "54cbf3da998d4de83ba3602a/master/",
                                 "w_960,c_limit/image.jpg")),
        mj_carousel_image(paste0("https://media.vanityfair.com/photos/",
                                 "54cbf3dafde9250a6c402ed2/master/",
                                 "w_690,c_limit/image.jpg"))
      )
    )
  )
)

JohnCoene/mjml documentation built on June 21, 2020, 11:42 a.m.