Skip to content

ninjulia/email_carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Email: Carousel with Thumbnails

Email coded to showcase carousel and thumbnail functionality. Design based on Adidas' "50% OFF! Black Friday Drops Now" email as seen on Really Good Emails. The email was originally sent in November 2016.

Images and code are modified from the original Adidas email. The images used here are courtesy of placeimg.com and used under Creative Commons License. Otherwise, all copyrights remain in control of their respective owners.

The email showcased here was coded from scratch utilizing my email boilerplate framework (developed from Email on Acid and Litmus.com samples as a starting point). In addition to the advanced functionality, I added support for dark mode and tested for email clients post-2016. Tests passing in 44 popular mobile, web, and desktop email clients/devices as of August, 2021. All copyrights and trademarks remain property of their respective owners.

Expected Results

Users should be able to:

On Email Clients that Support CSS Animations

  • See one Hero Image with clickable Left and Right arrows
  • Advance/Replay Hero Image carousel when arrows clicked
  • Click a CTA on each Hero Image (linked to # in this example)
  • See thumbnail images in row below hero image
  • See corresponding Hero Image when thumbnail image clicked
  • See an outline around the clicked thumbnail image clicked

On Email Clients that DO NOT Support CSS Animations

  • See one Hero Image with clickable CTA
  • Do not show any thumbnail images

Carousel Functionality

I coded the advanced carousel and thumbnail functionality while referencing the Email on Acid Tutorial: Animated Image Carousel for Email and Email on Acid Tutorial: Interactive Quiz. The effect will only work in email clients that support CSS Animations and the Interactive Checkbox Technique - aka the "checkbox hack." Supported clients are Webkit-based - iOS Mail (iPhone, iPad), Apple Mail, and Outlook for iOS and Mac. All other clients display fallback content of a hero image with a link through to a defined landing page (not linked in this example).

A Note About Outlook.com

While Outlook.com (Office365.com, Hotmail.com) passes the webkit support check, it does not render the carousel feature as expected. Carousel images are displayed stacked in a vertical layout. In some situations, this might be an acceptable fallback effect. Here, the solution was to target owa specifically applying the following css to the advanced layout:

`[owa].hideme {
    display: none !important;
    font-size: 0;
    height: 0;
    overflow: hidden;
    mso-hide: all !important;
} `

Email On Acid Test List

Mobile

  • Gmail App Pixel 2 (Android 9)

  • Gmail App Pixel 3 (Android 10)

  • Gmail App Pixel 4 (Android 11)

  • iPhone11 (iOS 13)

  • iPhone12 (iOS 13)

  • iPhone13 (iOS 14)

Desktop

  • Apple Mail
  • Outlook

Web Clients

  • Gmail (Chrome, Edge, FireFox)
  • Office365 (Chrome, Edge, FireFox)
  • Outlook.com (Chrome, Edge, FireFox)
  • Yahoo (Chrome, Edge, FireFox)

Screenshot

screenshot

Links

About

Advanced email with carousel feature

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages