Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                        <div class="carousels">
  <div class="carousel" tabindex="0" role="menu">
    <div class="carousel__inner">
      <button class="carousel-nav__button nav__previous" tabindex="-1">
        <span class="icon-angle-left"></span>
      </button>

      <button class="carousel-nav__button nav__next" tabindex="-1">
        <span class="icon-angle-right"></span>
      </button>

      <h2 class="carousel-header" tabindex="-1">
        First slider title
      </h2>

      <div class="carousel-list-container">
        <ul class="carousel-list">
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
  
  <div class="carousel carousel--large" tabindex="0" role="menu">
      <div class="carousel__inner">
        <button class="carousel-nav__button nav__previous" tabindex="-1">
          <span class="icon-angle-left"></span>
        </button>
    
        <button class="carousel-nav__button nav__next" tabindex="-1">
          <span class="icon-angle-right"></span>
        </button>
    
        <h2 class="carousel-header" tabindex="-1">
          This is a big version of the slider
        </h2>
    
        <div class="carousel-list-container">
          <ul class="carousel-list">
            <li class="tile" tabindex="-1">
              <a class="tile__inner" href="#" role="menuitem">
                <div class="tile-content-container">
                  <div class="tile-figure">
                    <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                    <div class="tile-image"
                      style="background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2040&q=80') no-repeat top center; background-size: cover">
                    </div>
                    <div class="tile-links">
                      <button class="save" tabindex="-1">
                        <img src="images/save-icon.svg" alt="Save This Course">
                      </button>
    
                      <div class="quick-links">
                        <button tabindex="-1" aria-hidden="true">
                          View
                        </button>
                      </div>
                    </div>
                  </div>
                  <div class="tile-info">
                    <h3>
                      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Exercitationem, nemo! Incidunt eveniet hic
                    </h3>
                    <h5>
                      Lorem Ipsum
                    </h5>
                  </div>
                </div>
              </a>
            </li>

            <li class="tile" tabindex="-1">
              <a class="tile__inner" href="#" role="menuitem">
                <div class="tile-content-container">
                  <div class="tile-figure">
                    <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                    <div class="tile-image"
                      style="background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2040&q=80') no-repeat top center; background-size: cover">
                    </div>
                    <div class="tile-links">
                      <button class="save" tabindex="-1">
                        <img src="images/save-icon.svg" alt="Save This Course">
                      </button>
            
                      <div class="quick-links">
                        <button tabindex="-1" aria-hidden="true">
                          View
                        </button>
                      </div>
                    </div>
                  </div>
                  <div class="tile-info">
                    <h3>
                      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Exercitationem, nemo! Incidunt eveniet hic
                    </h3>
                    <h5>
                      Lorem Ipsum
                    </h5>
                  </div>
                </div>
              </a>
            </li>

            <li class="tile" tabindex="-1">
              <a class="tile__inner" href="#" role="menuitem">
                <div class="tile-content-container">
                  <div class="tile-figure">
                    <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                    <div class="tile-image"
                      style="background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2040&q=80') no-repeat top center; background-size: cover">
                    </div>
                    <div class="tile-links">
                      <button class="save" tabindex="-1">
                        <img src="images/save-icon.svg" alt="Save This Course">
                      </button>
            
                      <div class="quick-links">
                        <button tabindex="-1" aria-hidden="true">
                          View
                        </button>
                      </div>
                    </div>
                  </div>
                  <div class="tile-info">
                    <h3>
                      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Exercitationem, nemo! Incidunt eveniet hic
                    </h3>
                    <h5>
                      Lorem Ipsum
                    </h5>
                  </div>
                </div>
              </a>
            </li>

            <li class="tile" tabindex="-1">
              <a class="tile__inner" href="#" role="menuitem">
                <div class="tile-content-container">
                  <div class="tile-figure">
                    <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                    <div class="tile-image"
                      style="background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2040&q=80') no-repeat top center; background-size: cover">
                    </div>
                    <div class="tile-links">
                      <button class="save" tabindex="-1">
                        <img src="images/save-icon.svg" alt="Save This Course">
                      </button>
            
                      <div class="quick-links">
                        <button tabindex="-1" aria-hidden="true">
                          View
                        </button>
                      </div>
                    </div>
                  </div>
                  <div class="tile-info">
                    <h3>
                      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Exercitationem, nemo! Incidunt eveniet hic
                    </h3>
                    <h5>
                      Lorem Ipsum
                    </h5>
                  </div>
                </div>
              </a>
            </li>

            <li class="tile" tabindex="-1">
              <a class="tile__inner" href="#" role="menuitem">
                <div class="tile-content-container">
                  <div class="tile-figure">
                    <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                    <div class="tile-image"
                      style="background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2040&q=80') no-repeat top center; background-size: cover">
                    </div>
                    <div class="tile-links">
                      <button class="save" tabindex="-1">
                        <img src="images/save-icon.svg" alt="Save This Course">
                      </button>
            
                      <div class="quick-links">
                        <button tabindex="-1" aria-hidden="true">
                          View
                        </button>
                      </div>
                    </div>
                  </div>
                  <div class="tile-info">
                    <h3>
                      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Exercitationem, nemo! Incidunt eveniet hic
                    </h3>
                    <h5>
                      Lorem Ipsum
                    </h5>
                  </div>
                </div>
              </a>
            </li>

            <li class="tile" tabindex="-1">
              <a class="tile__inner" href="#" role="menuitem">
                <div class="tile-content-container">
                  <div class="tile-figure">
                    <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                    <div class="tile-image"
                      style="background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2040&q=80') no-repeat top center; background-size: cover">
                    </div>
                    <div class="tile-links">
                      <button class="save" tabindex="-1">
                        <img src="images/save-icon.svg" alt="Save This Course">
                      </button>
            
                      <div class="quick-links">
                        <button tabindex="-1" aria-hidden="true">
                          View
                        </button>
                      </div>
                    </div>
                  </div>
                  <div class="tile-info">
                    <h3>
                      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Exercitationem, nemo! Incidunt eveniet hic
                    </h3>
                    <h5>
                      Lorem Ipsum
                    </h5>
                  </div>
                </div>
              </a>
            </li>

            <li class="tile" tabindex="-1">
              <a class="tile__inner" href="#" role="menuitem">
                <div class="tile-content-container">
                  <div class="tile-figure">
                    <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                    <div class="tile-image"
                      style="background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2040&q=80') no-repeat top center; background-size: cover">
                    </div>
                    <div class="tile-links">
                      <button class="save" tabindex="-1">
                        <img src="images/save-icon.svg" alt="Save This Course">
                      </button>
            
                      <div class="quick-links">
                        <button tabindex="-1" aria-hidden="true">
                          View
                        </button>
                      </div>
                    </div>
                  </div>
                  <div class="tile-info">
                    <h3>
                      Lorem ipsum dolor sit amet consectetur, adipisicing elit. Exercitationem, nemo! Incidunt eveniet hic
                    </h3>
                    <h5>
                      Lorem Ipsum
                    </h5>
                  </div>
                </div>
              </a>
            </li>
          </ul>
        </div>
      </div>
    </div>
  
  <div class="carousel" tabindex="0" role="menu">
    <div class="carousel__inner">
      <button class="carousel-nav__button nav__previous" tabindex="-1">
        <span class="icon-angle-left"></span>
      </button>

      <button class="carousel-nav__button nav__next" tabindex="-1">
        <span class="icon-angle-right"></span>
      </button>

      <h2 class="carousel-header" tabindex="-1">
        This is the second slider title and is a bit longer than the first
      </h2>

      <div class="carousel-list-container">
        <ul class="carousel-list">
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
           <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
          
          <li class="tile" tabindex="-1">
            <a class="tile__inner" href="#" role="menuitem">
              <div class="tile-content-container">
                <div class="tile-figure">
                  <!-- These inline styles will be applied dynamically with a unique image URL. Every style other than the URL will be applied the same for all tiles -->
                  <div class="tile-image"
                       style="background: url('https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center; background-size: cover">
                  </div>
                  <div class="tile-links">
                    <button class="save" tabindex="-1">
                      <img src="images/save-icon.svg" alt="Save This Course">
                    </button>

                    <div class="quick-links">
                      <button tabindex="-1" aria-hidden="true">
                        View
                      </button>
                    </div>
                  </div>
                </div>
                <div class="tile-info">
                  <h3>
                    Lorem Ipsum Dolor Sit Unm
                  </h3>
                  <h5>
                    15 min read
                  </h5>
                </div>
              </div>
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                ///////////////////////
// Global Styles
///////////////////////

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

///////////////////////
// End Global Styles
///////////////////////

body {
  background: #42A5F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: "Open Sans", sans;
  margin: 0;
  padding: 40px 0;
}

.carousels {
  background: white;
  border: 20px solid #0288D1;
  border-radius: 40px;
  margin-bottom: 60px;
  overflow: hidden;
  padding: 30px 0;
  position: absolute;
  top: 60px;
  width: 85%;
}

.carousel {
  overflow: hidden;
  width: 100%;

  &:hover {
    @keyframes bubble-up {
      0% {
        transform: scale(0);
      }

      50% {
        transform: scale(1.15);
      }

      100% {
        transform: scale(1);
      }
    }

    .carousel-nav__button {
      opacity: 1;
      animation: bubble-up 0.4s ease-out;
      transition: all 0.2s ease-out;
    }
  }

  &.mobile-carousel {
    .carousel-nav__button {
      display: none;
    }

    .carousel-list-container {
      overflow: scroll;
    }
  }

  &.carousel--large {
    .carousel-list {
      height: 280px;

      @media screen and (min-width: 451px) {
        height: 365px;
      }
    }

    .tile {
      margin-right: 2%;
      min-width: 98%;

      @media screen and (min-width: 767px) {
        margin-right: 1%;
        min-width: 49%;
      }

      @media screen and (min-width: 1400px) {
        min-width: 32%;
        margin-right: 1.333%;
      }
    }

    .tile-figure {
      height: 200px;

      @media screen and (min-width: 451px) {
        height: 275px;
      }
    }
  }
}

.carousel__inner {
  position: relative;
}

.carousel-nav__button {
  background: #fff;
  border: 1px solid #dfdfdf;
  border-radius: 50%;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1), 0 1px 20px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 65px;
  padding: 0;
  position: absolute;
  top: 42%;
  transition: opacity 1s ease;
  outline: none;
  opacity: 0;
  width: 65px;
  z-index: 100;

  @keyframes shock-wave {
    0% {
      background: #fff;
      opacity: 1;
      transform: scale(1);
    }

    5% {
      background: #3f3f3f;
    }

    99% {
      opacity: 0;
      transform: scale(1.6);
    }

    100% {
      opacity: 0;
      transform: scale(1);
    }
  }

  &:before {
    border-radius: 50%;
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -10;
  }

  &:after {
    background: #fff;
    border-radius: 50%;
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
  }

  &:hover {
    &:before {
      animation: shock-wave 0.4s ease-out;
    }
  }

  span {
    color: #3f3f3f;
    font-size: 44px;
  }

  &.nav__previous {
    left: 1%;

    span {
      padding: 0 5px 0 0;
    }
  }

  &.nav__next {
    right: 1%;

    span {
      padding: 0 0 0 5px;
    }
  }
}

.carousel-header {
  color: #3f3f3f;
  font-size: 17px;
  font-weight: 600;
  line-height: 23px;
  margin: 0 4% 16px;

  @media screen and (min-width: 451px) {
    font-size: 19px;
  }
}

.carousel-list-container {
  margin: 0;
  overflow: unset;
  padding-top: 5px;
}

.carousel-list {
  display: flex;
  height: 196px;
  margin: 0 4% 20px;
  transition: transform 0.55s ease-in-out;
  overflow: unset;

  @media screen and (min-width: 451px) {
    height: 267px;
  }

  @media screen and (min-width: 690px) {
    margin: 0 4% 30px;
  }

  @media screen and (min-width: 1600px) {
    height: 287px;
  }

}

.tile {
  border-radius: 5px;
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.15);
  min-width: 48%;
  height: 100%;
  margin-right: 2%;
  position: relative;
  transition: box-shadow 0.18s ease-out;

  &:last-child {
    position: relative;

    &:after {
      content: '';
      display: block;
      height: 100%;
      position: absolute;
      left: 100%;
      width: 10%;
    }
  }

  @media screen and (min-width: 690px) {
    min-width: 32%;
    margin-right: 1.333%;
  }

  @media screen and (min-width: 1050px) {
    min-width: 24%;
    margin-right: 1%;
  }

  @media screen and (min-width: 1600px) {
    min-width: 19%;
    margin-right: 1%;
  }

  &:hover,
  &:focus {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1),
      4px 8px 18px 0 rgba(0, 0, 0, 0.1), 0 0 6px 0 rgba(0, 0, 0, 0.05);
  }

  &:hover {
    .tile-links {
      opacity: 1;

      .quick-links {
        opacity: 1;
        transform: translateY(0px);
      }
    }
  }

  &:focus {
    outline: none;
  }
}

.tile__inner {
  background: #ffffff;
  border-radius: 5px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  &:before {
    background: #fa6600;
    border-radius: 5px;
    content: '';
    display: none;
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    right: -2px;
  }

  &:hover {
    text-decoration: none;
  }

  &:focus {
    outline: none;
    text-decoration: none;

    &:before {
      display: block;
    }
  }
}

.tile-content-container {
  background: #ffffff;
  border-radius: 5px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.tile-figure {
  border-radius: 5px 5px 0 0;
  height: 118px;
  position: relative;
  overflow: hidden;

  @media screen and (min-width: 451px) {
    height: 180px;
  }

  @media screen and (min-width: 1600px) {
    height: 200px;
  }

  .tile-image {
    position: absolute;
    height: 100%;
    width: 100%;
  }

  &:before {
    background: #dfdfdf url('../images/tile-default-bg.jpg') no-repeat center center;
    background-size: contain;
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
  }
}

.tile-links {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  position: absolute;
  top: 0;
  transition: all 0.2s ease-out;
  opacity: 0;
  width: 100%;

  .save {
    display: none;
  }

  .quick-links {
    opacity: 0;
    transform: translateY(-10px);
    transition: transform 0.25s ease-out;
  }

  //   .save {
  //     background: none;
  //     border: none;
  //     padding: 12px;
  //     position: absolute;
  //     transition: transform 0.2s ease;

  //     &:hover {
  //       transform: scale(1.15);
  //     }

  //     img {
  //       height: 26px;
  //       width: 26px;
  //     }
  // }

  .quick-links {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;

    button {
      background: none;
      border: 2px solid #ffffff;
      border-radius: 5px;
      color: #ffffff;
      font-size: 15px;
      max-width: 90px;
      padding: 8px;
      text-transform: uppercase;
      transition: all 0.25s ease;
      width: 100%;

      &:hover {
        background: #ffffff;
        color: #3f3f3f;
      }
    }
  }
}

.tile-info {
  padding: 10px;
  font-size: 15px;
  line-height: 20px;

  h3,
  h5 {
    font-family: 'Open Sans',
      sans-serif;
    font-size: 13px;
    line-height: 18px;
    margin: 0;

    @media screen and (min-width: 451px) {
      font-size: 15px;
      line-height: 20px;
    }
  }

  h3 {
    color: #3f3f3f;
    font-weight: 500;
    margin-bottom: 6px;
    max-height: 36px;
    position: relative;
    overflow: hidden;

    @media screen and (min-width: 451px) {
      max-height: 40px;
    }

    &:before {
      background: linear-gradient(to right,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 1) 80%);
      bottom: 0;
      content: '';
      height: 20px;
      position: absolute;
      right: 0;
      text-align: right;
      width: 40px;
    }
  }

  h5 {
    color: #727272;
    font-weight: 300;
  }
}
              
            
!

JS

              
                const carousels = Array.from(document.getElementsByClassName('carousel'));

carousels.forEach(function(carousel) {
  let currentSliderPosition = 0;
  const prevButton = carousel.querySelector('.nav__previous');
  const nextButton = carousel.querySelector('.nav__next');
  const tileListContainer = carousel.querySelector('.carousel-list-container');
  const tileList = carousel.querySelector('.carousel-list');
  let tileListWidth = tileList.getBoundingClientRect().width;
  const tiles = tileList.querySelectorAll('.tile');
  let tileWidth = tiles[0].getBoundingClientRect().width;

  // Set button's visibility based on type of device
  if (isMobileDevice()) {
    carousel.classList.add('mobile-carousel');
  } else {
    carousel.classList.remove('mobile-carousel');
  }

  // Initialize hiding of previous/next buttons (when carousel's start at 0)
  hidePrevButton(0, prevButton);
  hideNextButton(0, nextButton, tiles, tileWidth, tileListWidth);

  // Set tab index for each tile
  carousel.classList.contains('carousel--large')
    ? tileTabindexLarge(tiles)
    : tileTabindexNormal(tiles);

  // Previous button listener and functionality
  prevButton.addEventListener('click', function() {
    currentSliderPosition = currentSliderPosition + tileListWidth;

    tileList.style = `transform: translateX(${currentSliderPosition}px)`;

    hidePrevButton(currentSliderPosition, prevButton);
    hideNextButton(
      currentSliderPosition,
      nextButton,
      tiles,
      tileWidth,
      tileListWidth
    );
  });

  // Next button listener and functionality
  nextButton.addEventListener('click', function() {
    currentSliderPosition = currentSliderPosition - tileListWidth;

    tileList.style = `transform: translateX(${currentSliderPosition}px)`;

    hidePrevButton(currentSliderPosition, prevButton);
    hideNextButton(
      currentSliderPosition,
      nextButton,
      tiles,
      tileWidth,
      tileListWidth
    );
  });

  // Reset functionality on screen resize
  window.addEventListener('resize', function() {
    // - Set currentSliderPosition to zero
    currentSliderPosition = 0;
    // Reset previous/next button hide/show
    hidePrevButton(0, prevButton);
    hideNextButton(0, nextButton, tiles, tileWidth, tileListWidth);
    // - Translate to beginning of carousel
    tileList.style = `transform: translateX(${currentSliderPosition}px)`;
    // Refresh tile width and tile list width
    tileListWidth = tileList.getBoundingClientRect().width;
    tileWidth = tiles[0].getBoundingClientRect().width;
    // Reset tabindex
    carousel.classList.contains('carousel--large')
      ? tileTabindexLarge(tiles)
      : tileTabindexNormal(tiles);
  });
});

// Determine if device is mobile
function isMobileDevice() {
  return (
    typeof window.orientation !== 'undefined' ||
    navigator.userAgent.indexOf('IEMobile') !== -1
  );
}

// Apply tabindex=0 to first visible tiles in each carousel
function tileTabindexNormal(tiles) {
  tiles.forEach(function(tile, index) {
    if (window.innerWidth < 690) {
      setTabindex(tile, index, 1);
    } else if (window.innerWidth < 900) {
      setTabindex(tile, index, 2);
    } else {
      setTabindex(tile, index, 3);
    }
  });
}

function tileTabindexLarge(tiles) {
  tiles.forEach(function(tile, index) {
    if (window.innerWidth < 767) {
      setTabindex(tile, index, 0);
    } else if (window.innerWidth < 1400) {
      setTabindex(tile, index, 1);
    } else {
      setTabindex(tile, index, 2);
    }
  });
}

// Set tabindex per how many are fully visible on the screen
function setTabindex(tile, index, indexLimit) {
  index <= indexLimit
    ? (tile.querySelector('.tile__inner').tabIndex = 0)
    : (tile.querySelector('.tile__inner').tabIndex = -1);
}

// Hide previous button when at beginning of list
function hidePrevButton(position, button) {
  position < 0 && !isMobileDevice()
    ? (button.style.display = 'block')
    : (button.style.display = 'none');
}

// Hide next button when at end of list
function hideNextButton(position, button, tiles, tileWidth, tileListWidth) {
  position > tiles.length * -tileWidth + tileListWidth && !isMobileDevice()
    ? (button.style.display = 'block')
    : (button.style.display = 'none');
}

              
            
!
999px

Console