Cloudinary Blog

Blog posts of 'jquery' tag
How To Create a 360 Product Viewer

E-commerce is a dynamic business. Shoppers are constantly browsing sites for the best deals or for the latest of their favorite products, adding to wish lists, and exploring product recommendations from friends and influencers. On the other hand, online vendors are always on a tear to try to draw in shoppers and convert clicks to cash with various techniques, such as by reducing page-load time, posting compelling product images, and aggressively targeting ads.

Read more
Automating File Upload and Sharing

As computer users, we constantly upload files, transferring them from one system to another over a network. You can perform uploads on a terminal, such as through the SSH File Transfer Protocol (SFTP) or Secure Copy Protocol (SCP), File Transfer Protocol (FTP) clients, or web browsers. Generally, you upload files to move data to a server or a managed service like cloud storage, but you can also send files between distributed clients.

Read more

How to Generate Waveform Images From Audio Files

By Meir Feinberg
How to Generate Waveform Images From Audio Files

Nowadays, users can and often upload various media files to social networks, websites, and messaging apps. Most of those media are images and videos, with a significant number being audio files. Subsequently, to create a thumbnail to depict an image, a site or app would crop and then resize it to scale. To depict a video, they would convert, crop, and resize a single frame from it as a thumbnail.

Read more
Animated GIF? Convert to WebM or MP4

Short videos of animated GIFs are spreading like wildfire around the web, especially in media and news sites, and people frequently share animated GIFs on social apps. However, because those GIFs are not optimized, their sizes are huge, consuming heavy bandwidth and slowing down page loads. Also, resizing and transforming a large number of animated GIFs, one by one, to match the graphic design of your site or app is a lengthy, CPU-intensive process.

Read more
How to Optimize Image Size for Your jQuery Slider

Many modern homepages feature a slider or carousel to rotate images of, for example, offers from or characters of the brand. Have you noticed that homepages are slow to load, though? The size of the images on sliders could be to blame.

Read more

Optimizing Animated GIFs With Lossy Compression

By Meir Feinberg
How to Optimize Animated GIFs With Lossy Compression

Even though the image format animated GIFs are gaining popularity, their file size is usually large, causing slow loading and incurring high bandwidth costs. Besides, the GIF format is old and not optimized for modern video clips. The developer’s job of effecting fast loading of animated GIFs and delivering optimized images is complex and time-consuming.

Read more
JavaScript Drag and Drop File Upload Widget UI

As developers of web apps, you often need to let users upload files to your app - mainly images and videos. You want the upload interface you provide to offer an intuitive user experience, including the ability to drag & drop multiple media files, preview thumbnails of selected images and videos, view upload progress indication and more. Since we now all live in the cloud era, chances are that many of your users also store media files in the cloud rather than only locally on hard drives and mobile devices, so the option to pick files from social networks like Facebook, cloud storage services such as Dropbox, photo services like Google Photos and more is a big advantage.

Read more
Top 7 jQuery Sliders and 3 Ways in Which to Create Your Own
Cloudinary offers a cloud-based solution to help developers manage and optimize rich media (images and videos). With images being ubiquitous in online content, image sliders, which rotate banners or enable browsing through multiple images with animation effects and CSS3 transitions at the top of a website’s homepage, are becoming popular.
 
In our opinion, jQuery is the hands-down, No. 1 choice for building sliders. This article describes 7 ready-made, high-quality, and user-friendly jQuery sliders, complete with excellent designs and features. Also included are four tutorials along with code samples to help you build your own jQuery slider.

Top 7 Ready-to-Use jQuery Sliders

ResponsiveSlides.js

This is a small jQuery plugin that creates a responsive slider with the elements inside a container. It works with numerous browsers, including Internet Explorer version 6 and up. In addition, it supports `max-width` in CSS for IE6 and other browsers that don't natively support `max-width`. You must run jQuery 1.6 and up to use this plugin. Also, keep in mind that all the images are of the same size.
 
Options: File links, markup, CSS, slideshow, customizable options.
License: Open Source (MIT)
 
 

BXSlider

This is a fully responsive, popular slider that is well supported on GitHub. The slides can contain images, video, or HTML with built-in support for touch and swipe. The file size is small and the theme, simple to implement. This slider, which uses CSS transitions for animation with native hardware acceleration, works well with Firefox, Chrome, Safari, iOS Android, and IE7+ browsers.
 
Options: Horizontal, vertical and fade modes, transition duration, margin between slides, starting slide, random start, slide selector, infinite loop, hiding control on end, captions, text ticker, adaptive height, animations as CSS or jQuery, preload images, swipe threshold, numbered pagination, full customization of slider controls, full callback API and public methods
License: Open Source (MIT)
 
 

Slick

This is a fully responsive, popular slider that scales with its container and that is well supported on GitHub. Even though Slick uses CSS3 when available, it’s fully functional without CSS3. Additionally, Slick is swipe enabled with support for desktop-mouse dragging and arrow-key navigation.
 
Options: Separate settings per breakpoint, single and multiple items, variable width, adaptive height, lazy loading, infinite looping, add, remove, filter and unfilter slides,
autoplay, dots, arrows, callbacks
License: Open Source
 
 

WooThemes FlexSlider 2

This is a fully responsive slider with intuitive markup and support by all major browsers. Its features include horizontal or vertical slider and fade animations, multiple sliders, callback API, support for hardware-accelerated touch-slide, and customizable navigation options. 
 
Options: Installation, file links, markup, animation type, easing, direction, looping, smooth height animation, slideshow and its speed and randomization, video, sliding with keyboard arrows or mousewheel, and a pause-play element
License: Open Source (MIT)
 
 

Swiper

A mobile touch slider with hardware-accelerated transitions, this one is intended for use in mobile websites, mobile apps, and mobile native or hybrid apps. Swiper works with iOS, Android, and Windows Phone 8.
 
Options: Initialization, hash navigation, parallax, lazy loading, emitter API and events, HTML layout, CSS styles and size, and support for CDN
License: Open Source (MIT)
 
Demos / Download / Documentation

Super Simple Slider

As its name implies, this slider is simple and small. It’s also browser friendly and responsive, with support for arrow keys, and works with all HTML content.
 
Options: Slideshow, order-slide display, transition, speed, show-hide navigation
License: Open Source (WTFPL)
 
 

Animate Slider

This is a slider plugin with specific animations for each of its elements. It offers predefined animation classes and adds them to each slider element, allowing addition of classes with delay for each of the animations. 
 
Options: Autoplay, time, animations, fade-bounce-rotate-enter left or right, delay of slide display 
License: Open Source (MIT)
 
 

3 Ways to Build Your Own Slider

We collected a few great write ups from across the web showing step by step how you can easily create your own slider.
 
 
 
 
 

 
 
 

Summary

We hope you enjoyed this compilation of different ways to build sliders on your site using jQuery. If you’re a user of jQuery and have additional image-related tasks on your website, or want some help preparing and optimizing the images for your slider, check out Cloudinary’s jQuery integration. We offer a very easy way to upload images, deliver them to users via CDN, and perform advanced image transformations on the fly with one line of code. If you want to try it out, sign up for our free plan
 
And of course, please let us know in the comments below if you’ve tried out any of the sliders of code samples above and have any thoughts, and if you can share additional jQuery-based slider solutions. 
Read more