jQuery实现的空间立体图片展示效果_时代Java(NowJava.com) -JS/jQuery代码 -演示与下载 -时代Java

Spacegallery

About

Again another image gallery. Click on the images bellow to see it in action.

Implement

Attach the Javascript and CSS files to your document. Edit CSS file and fix the paths to images and change colors to fit your site theme. Important: be sure to include Javascript files in the specific order as in the example below.

<link rel="stylesheet" media="screen" type="text/css" href="css/spacegallery.css" />
<script type="text/javascript" src="js/eye.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/spacegallery.js"></script>
                

Invocation code

Prepare a block level element with some images inside. All you have to do is to select the elements in a jQuery way and call the plugin.

$('#myGallery').spacegallery({loadingClass: 'loading'});
                

Options

A hash of parameters. All parameters are optional.

border integer Images' border. Default: 0
duration integer Animation duration. Default 800
perspective integer Perpective height. Default: 140
minScale float Minimum scale for the image in the back. Default: 0.2
loadingClass string CSS class applied to the element while looading images. Default: null
before function Callback function triggered before going to the next image
after function Callback function triggered after going to the next image

代码整理:时代Java(NowJava.com) 

转载请注明出处,此代码仅供学习交流,请勿用于商业用途。

下载代码说明
X关闭

jQuery实现的前后层叠空间立体图片展示效果

jQuery实现的空间立体图片展示效果,图片呈现前后层叠立体摆放,点击最上面的一张图片可以查看下一张图片,经测试效果非常有感觉,感兴趣的你可不要错过了哈。