Hit enter after type your search item

Create jQuery coverflow with CSS 3 transitions: 2 demos

The jQuery coverflow plug-in

The coverflow plug-in, which is based on jQuery, is an easy way for creating coverflow in your website for the photographs, professional work presentation like web design, or other documents that can be viewed by using keyboard navigation, mouse click or mouse wheel, and swipe / tap.

FYI, the coverflow is a concept implemented on iTunes, as a third party add-on and later purchased by Apple. This appeared not only in iTunes but other Apple products like Max OS as well. The contents of a folder are displayed as large thumbnails that float on a background.

See the section below for creating the coverflow for your website by using the jQuery plug-in. Later, I will explain how you may set up this plug-in along with different options.

A demo of coverflow with photographs

In this example, a few images are used in the coverflow. You may navigate by using the keyboard left/right, up/down and home/end keys. You may also use the mouse click or wheel and if you are using a smart phone/mobile, try tapping to navigate:

jquery coverflow

See online demo and code

The script used for this example after including the reference files (jQuery, plug-in):

 


 

The markup:

 


 

The CSS is also used for styling the demo that you can see on the demo page along with the functional code.

In the script section, the following options are used for specifying the behavior of coverflow:

  • The easing option is used that can be any value available from jQuery-ui here e.g. linear, swing, easeIn, easeOut etc..
  • The duration specifies the speed of the animation. I have used a numeric value in milliseconds. You may use slow, normal or fast as well.
  • The index specifies the item in focus as the webpage with coverflow loads.The index starts at 0.
  • Similarly, a few other options like height and width are also given. You may read the full available options with details here. Also, you may download the plug-in from the given link.

A demo of using numbers in coverflow

For the demo purpose that you may use different content types in the coverflow, the numbers from 1 to 15 are used in this example.

Apart from that, a few buttons are given for certain actions like move first, last and to a specific number by clicking the respective buttons. Have a look at the demo by clicking the link or image below:

jquery coverflow numbers

See online demo and code

The markup:


 

The script:

 


 

Setting up this coverflow jQuery plug-in

After downloading the plug-in from the Github website, include the reference files as shown in the demo pages.

<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.js”></script>

<script src=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.js”></script>

<!– Optional: Reflection –>

<script type=”text/javascript” src=”js/coverflow/reflection.js”></script>

<!– interpolate, depends on jQ 1.8.0+ –>

<script src=”js/coverflow/jquery.interpolate.min.js”></script>

<!– Coverflow –>

<script src=”js/coverflow/jquery.coverflow.js”></script>

Specify the options in the script section as per requirement.

 

Credit: vanderlee

This div height required for enabling the sticky sidebar