Special 3D gallery effects implemented by jQuery and CSS3

Source: Internet
Author: User

Online Demo local download

Today, we will share a special 3D loop gallery display effect implemented by jQuery and CSS3. This 3D effect is implemented using the 3D change feature of CSS3, which is simple and gorgeous. I hope you will like it!

Using 3D changes and placing them in a 3D space, we can make simple elements more dynamic and use the CSS transition effect, these elements can easily be moved to a 3D space and create a very real effect.

The main idea is to create a carousel gallery. We can place an image in the middle and two pictures next to it. Because we use different angles, it seems that the images next to the two images are set in a 3D space, and then we rotate them.

Note: The effect here requires your browser to support 3D changes.

How to work

 
 
  1. <section id="dg-container" class="dg-container">  
  2.     <div class="dg-wrapper">  
  3.         <a href="#">  
  4.               
  5.             <div>http://www.colazionedamichy.it/</div>  
  6.         </a>  
  7.         <a href="#">  
  8.             <!-- ... -->  
  9.         </a>  
  10.         <!-- ... -->  
  11.     </div>  
  12.     <nav>  
  13.         <span class="dg-prev"><</span>  
  14.         <span class="dg-next">></span>  
  15.     </nav>  
  16. </section> 

Option

 
 
  1. current     : 0,  
  2. // index of current item  
  3.    
  4. autoplay    : false,  
  5. // slideshow on / off  
  6.    
  7. interval    : 2000  
  8. // time between transitions 

For all the code, see online demonstration.

Original article: http://www.cnblogs.com/gbin1/archive/2012/02/23/2365879.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.