html5立体照片墙效果,HTML5特效可以 14种jQuery超酷3D网格照片墙动画特效源码

a4c26d1e5885305701be709a3d33442f.png

效果图

各位长友大家好,

今天 给大家带来的是14种jQuery超酷3D网格照片墙动画特效源码!

大家可以按照自己的意愿做成 个人喜欢的样子!

想要文件版源码的,请加穷581549454

废话不多说。上源码!

CSS源码:

@import

url(http://fonts.useso.com/css?family=Raleway:200,500,700,800);

@font-face {

font-family: 'icomoon';

src:url('../fonts/icomoon.eot?rretjt');

src:url('../fonts/icomoon.eot?#iefixrretjt')

format('embedded-opentype'),

url('../fonts/icomoon.woff?rretjt') format('woff'),

url('../fonts/icomoon.ttf?rretjt') format('truetype'),

url('../fonts/icomoon.svg?rretjt#icomoon') format('svg');

font-weight: normal;

font-style: normal;

}

[class^="icon-"], [class*=" icon-"] {

font-family: 'icomoon';

speak: none;

font-style: normal;

font-weight: normal;

font-variant: normal;

text-transform: none;

line-height: 1;

-webkit-font-smoothing: antialiased;

-moz-osx-font-smoothing: grayscale;

}

body, html { font-size: 100%; padding: 0; margin: 0;}

*,

*:after,

*:before {

-webkit-box-sizing: border-box;

-moz-box-sizing: border-box;

box-sizing: border-box;

}

.clearfix:before,

.clearfix:after {

content: " ";

display: table;

}

.clearfix:after {

clear: both;

}

body{

background: #f9f7f6;

color: #404d5b;

font-weight: 500;

font-size: 1.05em;

font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande",

Helvetica, Arial,sans-serif, FreeSans, Arimo;

}

a{color: #2fa0ec;text-decoration: none;outline: none;}

a:hover,a:focus{color:#74777b;}

.htmleaf-container{

margin: 0 auto;

text-align: center;

overflow: hidden;

}

.htmleaf-content {

font-size: 150%;

padding: 1em 0;

}

.htmleaf-content h2 {

margin: 0 0 2em;

opacity: 0.1;

}

.htmleaf-content p {

margin: 1em 0;

padding: 5em 0 0 0;

font-size: 0.65em;

}

.bgcolor-1 { background: #f0efee; }

.bgcolor-2 { background: #f9f9f9; }

.bgcolor-3 { background: #e8e8e8; }

.bgcolor-4 { background: #2f3238; color: #fff; }

.bgcolor-5 { background: #df6659; color: #521e18; }

.bgcolor-6 { background: #2fa8ec; }

.bgcolor-7 { background: #d0d6d6; }

.bgcolor-8 { background: #3d4444; color: #fff; }

.bgcolor-9 { background: #ff0025; color: #fff;}

.bgcolor-10{ background: #64448f; color: #fff;}

.bgcolor-11{ background: #3755ad; color: #fff;}

.bgcolor-12{ background: #3498DB; color: #fff;}

.htmleaf-header{

padding: 1em 190px 1em;

letter-spacing: -1px;

text-align: center;

}

.htmleaf-header h1 {

font-weight: 600;

font-size: 2em;

line-height: 1;

margin-bottom: 0;

font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande",

Helvetica, Arial,sans-serif, FreeSans, Arimo;

}

.htmleaf-header h1 span {

font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande",

Helvetica, Arial,sans-serif, FreeSans, Arimo;

display: block;

font-size: 60%;

font-weight: 400;

padding: 0.8em 0 0.5em 0;

color: #c3c8cd;

}

.htmleaf-demo a{color: #1d7db1;text-decoration: none;}

.htmleaf-demo{width: 100%;padding-bottom: 1.2em;}

.htmleaf-demo a{display: inline-block;margin: 0.5em;padding: 0.6em

1em;border: 3px solid #1d7db1;font-weight: 700;}

.htmleaf-demo a:hover{opacity: 0.6;}

.htmleaf-demo a.current{background:#1d7db1;color: #fff; }

.htmleaf-links {

position: relative;

display: inline-block;

white-space: nowrap;

font-size: 1.5em;

text-align: center;

}

.htmleaf-links::after {

position: absolute;

top: 0;

left: 50%;

margin-left: -1px;

width: 2px;

height: 100%;

background: #dbdbdb;

content: '';

-webkit-transform: rotate3d(0,0,1,22.5deg);

transform: rotate3d(0,0,1,22.5deg);

}

.htmleaf-icon {

display: inline-block;

margin: 0.5em;

padding: 0em 0;

width: 1.5em;

text-decoration: none;

}

.htmleaf-icon span {

display: none;

}

.htmleaf-icon:before {

margin: 0 5px;

text-transform: none;

font-weight: normal;

font-style: normal;

font-variant: normal;

font-family: 'icomoon';

line-height: 1;

speak: none;

-webkit-font-smoothing: antialiased;

}

.htmleaf-footer{width: 100%;padding-top: 10px;}

.htmleaf-small{font-size: 0.8em;}

.center{text-align: center;}

.related {

color: #fff;

background: #333;

text-align: center;

font-size: 1.25em;

padding: 0.5em 0;

overflow: hidden;

}

.related > a {

vertical-align: top;

width: calc(100% - 20px);

max-width: 340px;

display: inline-block;

text-align: center;

margin: 20px 10px;

padding: 25px;

font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande",

Helvetica, Arial,sans-serif, FreeSans, Arimo;

}

.related a {

display: inline-block;

text-align: left;

margin: 20px auto;

padding: 10px 20px;

opacity: 0.8;

-webkit-transition: opacity 0.3s;

transition: opacity 0.3s;

-webkit-backface-visibility: hidden;

}

.related a:hover,

.related a:active {

opacity: 1;

}

.related a img {

max-width: 100%;

opacity: 0.8;

border-radius: 4px;

}

.related a:hover img,

.related a:active img {

opacity: 1;

}

.related h3{font-family: "Microsoft YaHei", sans-serif;}

.related a h3 {

font-weight: 300;

margin-top: 0.15em;

color: #fff;

}

.icon-htmleaf-home-outline:before {

content: "e5000";

}

.icon-htmleaf-arrow-forward-outline:before {

content: "e5001";

}

@media screen and (max-width: 50em) {

.htmleaf-header {

padding: 3em 10% 4em;

}

.htmleaf-header h1 {

font-size:2em;

}

}

@media screen and (max-width: 40em) {

.htmleaf-header h1 {

font-size: 1.5em;

}

}

@media screen and (max-width: 30em) {

.htmleaf-header h1 {

font-size:1.2em;

}

}

index:

@import url(http://fonts.useso.com/css?family=Montserrat);

* {margin: 0; padding: 0;}

body {text-align: center; }

.grid {

width: 600px; height: 300px; margin: 100px auto 50px auto;

perspective: 500px;

}

.grid img {width: 60px; height: 60px; display: block; float:

left;}

.animate {

font: 12px Montserrat; text-transform: uppercase;

background: rgb(0, 100, 0); color: white;

padding: 10px 20px; border-radius: 5px;

cursor: pointer;

}

.animate:hover {background: rgb(0, 75, 0);}

jQuery超酷3D网格照片墙动画特效 A Grid Animation Effects

Animate

更多jquery特效请点击网页特效库

//Creating 50 thumbnails inside .grid

//the images are stored on the server serially. So we can use a

loop to generate the HTML.

var images = "", count = 50;

for(var i = 1; i <= count; i++)

images += '

blog_15bc71a9e0102ycpb.html';

//appending the images to .grid

$(".grid").append(images);

var d = 0; //delay

var ry, tz, s; //transform params

//animation time

$(".animate").on("click", function(){

//fading out the thumbnails with style

$("img.grid-image").each(function(){

d = Math.random()*1000; //1ms to 1000ms delay

$(this).delay(d).animate({opacity: 0}, {

//while the thumbnails are fading out, we will use the step

function to apply some transforms. variable n will give the current

opacity in the animation.

step: function(n){

s = 1-n; //scale - will animate from 0 to 1

$(this).css("transform", "scale("+s+")");

},

duration: 1000,

})

}).promise().done(function(){

//after *promising* and *doing* the fadeout animation we will bring

the images back

storm();

})

})

//bringing back the images with style

function storm()

{

$("img.grid-image").each(function(){

d = Math.random()*1000;

$(this).delay(d).animate({opacity: 1}, {

step: function(n){

//rotating the images on the Y axis from 360deg to 0deg

ry = (1-n)*360;

//translating the images from 1000px to 0px

tz = (1-n)*1000;

//applying the transformation

$(this).css("transform", "rotateY("+ry+"deg)

translateZ("+tz+"px)");

},

duration: 3000,

//some easing fun. Comes from the jquery easing plugin.

easing: 'easeOutQuint',

})

})

}

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值