Download
User Rating: 5/5 ( 1 votes)
3D Flow is the ultra small (1Kb minified and gzipped) and free plugin for iDangero.us Swiper that turns your great swiper slider (or app) into amazing realistic 3D gallery with dynamic shadows. It was inspired by iOS App Store homepage 3D slider.
It works in all browser that support CSS3 3D Transforms: WebKit browsers (Chrome, Safari, iOS Safari, native Android & BlackBerry browsers, etc.), FireFox 12+ and Internet Explorer 10 (including Windows Phone 8). In browsers that do not support CSS3 3D transforms it will work and look like a usual Swiper.
Source: idangero.us
1. INCLUDE CSS AND JS FILES
<link rel="stylesheet" href="path_to_css/idangerous.swiper.css">
<link rel="stylesheet" href="path_to_css/idangerous.swiper.3dflow.css">
<script src="path_to_js/idangerous.swiper-2.x.min.js"></script>
<script src="path_to_js/idangerous.swiper.3dflow-2.x.js"></script>
2. HTML
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide" style="background-image:url(img/2.jpg)">
<a href="http://www.idangero.us/sliders/moover/" target="_blank"></a>
</div>
<div class="swiper-slide" style="background-image:url(img/1.jpg)">
<a href="http://www.idangero.us/" target="_blank"></a>
</div>
<div class="swiper-slide" style="background-image:url(img/4.jpg)">
<a href="http://www.idangero.us/sliders/" target="_blank"></a>
</div>
<div class="swiper-slide" style="background-image:url(img/7.jpg)">
<a href="http://www.idangero.us/cs/" target="_blank"></a>
</div>
<div class="swiper-slide" style="background-image:url(img/6.jpg)">
<a href="http://www.idangero.us/sliders/s6/" target="_blank"></a>
</div>
</div>
</div>
3. JAVASCRIPT
var mySwiper = new Swiper('.swiper-container',{
slidesPerView:3,
loop:true,
//Enable 3D Flow
tdFlow: {
rotate : 30,
stretch :10,
depth: 150,
modifier : 1,
shadows:true
}
});
4. OPTIONS
Parameter |
Type |
Default Value |
Example |
Description |
rotate |
number |
50 |
-30 |
Rotation angle (in degrees) of closest to center slides |
depth |
number |
100 |
150 |
Depth of closest to center slides (in px), actualy this is a translateZ value |
stretch |
number |
0 |
40 |
Horizontal (in horizontal mode) or vertical ofset of closest to center slides (in px), actualy this is a translateX (for horizontal mode) or translateY (for vertical mode) values |
shadows |
boolean |
true |
false |
Enable or disable dynamic shadows |
modifier |
number |
1 |
0.7 |
Multiplier of all parameters. If you set it equal to "2" then all passed options will be 2 times higher |