What is a Carousel?
When we talk about carousels in terms of UI design, we mean a pattern that contains a set of elements that you can access by cycling through them either manually or automatically. The included elements can be images, videos, text, or any other custom markup. By default, some of these elements are visible, while others appear with different types of animations like slide, fade, and parallax.
A carousel can support different types of navigation like swipe navigation, dot navigation, arrow navigation, and keyboard navigation.
Galleries and Lightboxes
Apart from sliders and slideshows, you’ll also come across galleries. A gallery is considered a carousel that contains images. Most of the time these appear in a grid structure. Many times a gallery is also presented inside a lightbox.
Did you know that you can build a CSS-only slideshow?
The demo below shows how to achieve it by taking advantage of the CSS checkbox hack technique. It’s fully functional and supports arrow navigation, dot navigation, thumbnail navigation, and keyboard navigation.
Depending on the cursor position, the next or previous arrow displays. Upon clicking on it, the next or previous slide comes into view.
This carousel supports a few customization options for the autoplay mode.
Going a bit further, it also shows how to animate the text elements of each active slide sequentially by using a few of the carousel events.
As a bonus, it also covers how to adapt the dots position based on the height of the contents of the active slide.
On the desktop mode, on the left side, there are the thumbnail images, while on the right side is the featured/active slide. On the mobile mode, the thumbnail images appear either below the featured one or don’t appear at all.
To create this effect, we're setting two independent carousels and synchronizing them, thanks to slick’s synchronization feature.
You might be familiar with Bootstrap, the most popular front-end development framework. In this exercise, we extend its functionality by building a lightbox gallery.
In factual act, we aren’t building anything new. We're just customizing and combining existing Bootstrap components.
CodeCanyon and Envato Elements WordPress Carousels
Whether you want to show off customer testimonials, your latest blog posts, your best images, or other media on your website, there is a WordPress slider plugin or WordPress carousel slider plugin out there that’s right for you.
In this post, we review the best premium WordPress gallery plugins available on CodeCanyon, as well as listing five of the best free plugins. The list is broken down by gallery type: there are plugins for video and multimedia, images, and WordPress grids.
Hopefully, this list has given you enough inspiration to build your own carousels. Enjoy the demos, read the associated tutorials, and last but not least, be sure to follow Envato Tuts+ on CodePen for more creative pens!