Diagonal Thumbnails Carousel Slider | Anime.js

Diagonal Slider is a cool mini carousel made with Anime.js JavaScript library. It takes a bunch of pictures and turns them into a circular user interface where you can switch the thumbnails in a diagonal direction.

Must Read: jQuery Image Slider with Thumbnails Plugin | reSlider

How to make use of it:

1. Insert your photos into the thumbnail grids.

<div class="slider">
  <div class="nav">
    <div class="next"></div>
    <div class="prev"></div>
    <div class="explore-btn">Explore</div>
  </div>
  <div class="item is-active">
    <div class="content">
      <div class="wrap">Novitates</div>
    </div>
    <div class="imgs">
      <div class="grid">
        <div class="img img-1"><img src="1.jpg"/></div>
        <div class="img img-2"><img src="2.jpg"/></div>
        <div class="img img-3"><img src="3.jpg"/></div>
        <div class="img img-4"><img src="4.jpg"/></div>
      </div>
    </div>
  </div>
  <div class="item">
    <div class="content">
      <div class="wrap">Si spem</div>
    </div>
    <div class="imgs">
      <div class="grid">
        <div class="img img-1"><img src="1.jpg"/></div>
        <div class="img img-2"><img src="2.jpg"/></div>
        <div class="img img-3"><img src="3.jpg"/></div>
        <div class="img img-4"><img src="4.jpg"/></div>
      </div>
    </div>
  </div>
  <div class="item">
    <div class="content">
      <div class="wrap">Adferunt</div>
    </div>
    <div class="imgs">
      <div class="grid">
        <div class="img img-1"><img src="1.jpg"/></div>
        <div class="img img-2"><img src="2.jpg"/></div>
        <div class="img img-3"><img src="3.jpg"/></div>
        <div class="img img-4"><img src="4.jpg"/></div>
      </div>
    </div>
  </div>
</div>

2. The CSS types for the diagonal carousel.

.slider {
  height: 100vh;
  width: 100vw;
  background-color: #0a0908;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: background-color 2s;
}
.slider .item .imgs {
  position: relative;
  width: 60%;
  padding-top: 60%;
}
.slider .item .imgs .grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  grid-column-gap: 32px;
  grid-row-gap: 32px;
  transform: rotate(-20deg);
  opacity: 0.65;
}
.slider .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider .item .img {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform;
  will-change: opacity;
}
.slider .item .img img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  -webkit-filter: contrast(110%) brightness(110%) saturate(130%);
  filter: contrast(110%) brightness(110%) saturate(130%);
}
.slider .item .img img::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
  background: rgba(243, 106, 188, 0.3);
}
.slider .item .img-1 {
  grid-area: 1/1/7/5;
}
.slider .item .img-2 {
  grid-area: 2/5/7/13;
}
.slider .item .img-3 {
  grid-area: 7/1/12/9;
}
.slider .item .img-4 {
  grid-area: 7/9/13/13;
}
.slider .item .content {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  font-size: 8rem;
  font-weight: 700;
}
.slider .item .content .wrap {
  text-align: center;
  text-shadow: 1px 1px 4px rgba(10, 9, 8, 0.2);
  width: 100%;
  max-width: 600px;
  line-height: 1;
}
.slider .item .content .wrap .letter {
  display: inline-block;
}
.slider .nav .next,
.slider .nav .prev {
  height: 2rem;
  width: 2rem;
  position: absolute;
  top: calc(50% - 1rem);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.3s;
}
.slider .nav .next {
  right: 2rem;
  background-image: url("data:image/svg+xml,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M 19 8 L 19 11 L 1 11 L 1 13 L 19 13 L 19 16 L 23 12 L 19 8 z' fill='white'/%3E%3C/svg%3E");
}
.slider .nav .next:hover {
  transform: translateX(0.5rem);
}
.slider .nav .prev {
  left: 2rem;
  background-image: url("data:image/svg+xml,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M 5 8 L 1 12 L 5 16 L 5 13 L 23 13 L 23 11 L 5 11 L 5 8 z' fill='white'/%3E%3C/svg%3E");
}
.slider .nav .prev:hover {
  transform: translateX(-0.5rem);
}
.slider .nav .explore-btn {
  z-index: 4;
  position: absolute;
  bottom: 2rem;
  left: calc(50% - 4rem);
  width: 8em;
  text-align: center;
  padding: 1rem 0;
  border: solid 2px white;
  background: transparent;
  color: white;
  transition: background-color 0.3s;
  cursor: pointer;
}
.slider .nav .explore-btn:hover {
  color: #0a0908;
  background: white;
}
.slider .item:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

3. Add the required anime.js JavaScript library to the web page.

<script src="/path/to/cdn/anime.min.js"></script>

See Demo And Download

Official Website(haja-ran): Click Here

This superior jQuery/javascript plugin is developed by haja-ran. For extra Advanced Usage, please go to the official website.

Related Posts

Vector-Graphs-smartGraph

Generating Beautiful Vector Graphs With jQuery | smartGraph

SmartGraph is a free and easy-to-use JavaScript library to create beautiful vector diagrams with many customizations. This plugin allows developers to create dynamic, responsive, draggable vector graphics…

vue-image-slider-transition

Image Slider With 20 Cool Transitions Component | vue-flux

Vue flux is an image slider developed with Vuejs 2 that comes with 20+ nice transitions out of the box. Included transitions 2D transitions Fade: Fades from…

simple-parallax-scrolling

Simple background Image Parallax Scroll Plugin In jQuery

Background parallax effect is a simple jQuery background image without any library. Uses jQuery’s scroll() function to track the scroll event and applies the exact parallax scroll…

bootstrap-color-picker-plugin

Modular Color Picker Plugin for Bootstrap | BS Colorpicker

Bootstrap Colorpicker is a standard color picker plugin for Bootstrap 4. Colorpicker Plugin for Bootstrap 5/4/3 frameworks that allow you to add a color picker to an…

gdpr-iframe-manager-js

GDPR Friendly iFrame Manager In Vanilla JS | iframemanager

IframeMananger is a lightweight JavaScript plug-in that helps you to comply with GDPR by completely removing iframes at first and setting a notice related to that service….

Notiflix-Notification

Notiflix Notification, Popup Boxes, Loading Indicators, and More in JavaScript Library

Notiflix is the JavaScript library of client-side unblocked notifications, popups, load indicators, and more that makes your web projects so much better. Notiflix is a versatile, highly…

Leave a Reply

Your email address will not be published. Required fields are marked *