html图片照片库特效,HTML5特效库 图片展示Q弹特效svg

a4c26d1e5885305701be709a3d33442f.png

效果图

各位媛猿大家早上好!

今天给大家带来的特效源码是 图片展示Q弹特效svg!

代码虽简单但是效果出众!

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

废话不多说,上源码!

CSS源码:

@import

url(http://fonts.googleapis.com/css?family=Montserrat:400,700|Englebert);

@font-face {

font-weight: normal;

font-style: normal;

font-family: 'codropsicons';

src: url("../fonts/codropsicons/codropsicons.eot");

src: url("../fonts/codropsicons/codropsicons.eot?#iefix")

format("embedded-opentype"),

url("../fonts/codropsicons/codropsicons.woff") format("woff"),

url("../fonts/codropsicons/codropsicons.ttf") format("truetype"),

url("../fonts/codropsicons/codropsicons.svg#codropsicons")

format("svg");

}

*,

*:after,

*:before {

-webkit-box-sizing: border-box;

box-sizing: border-box;

}

.cf:before,

.cf:after {

content: '';

display: table;

}

.cf:after {

clear: both;

}

html, body {

height: 100%;

}

body {

background: #24252c;

color: #fff;

font-weight: 400;

font-size: 18px;

line-height: 1.2;

font-family: 'Englebert', cursive;

-webkit-font-smoothing: antialiased;

-moz-osx-font-smoothing: grayscale;

overflow: hidden;

overflow-y: scroll;

}

a {

color: #067ba7;

text-decoration: none;

outline: none;

}

.demo-2 a {

color: #189824;

}

a:hover,

a:focus {

color: #fff;

}

.main {

height: 100%;

-webkit-perspective: 1200px;

perspective: 1200px;

}

.container {

width: 100%;

height: 100%;

padding: 1em;

position: relative;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-justify-content: center;

-moz-justify-content: center;

justify-content: center;

-webkit-box-direction: normal;

-webkit-box-orient: vertical;

-webkit-flex-direction: column;

-moz-flex-direction: column;

-ms-flex-direction: column;

flex-direction: column;

}

.codrops-header {

position: relative;

text-align: center;

-webkit-flex: none;

flex: none;

margin-bottom: 3em;

color: #067ba7;

padding: 0 1em;

}

.demo-2 .codrops-header {

color: #719847;

}

.codrops-header h1 {

font-weight: 400;

font-size: 1.75em;

margin: 0;

}

.info {

margin: 0;

font-size: 0.85em;

color: #fff;

font-family: 'Montserrat', Arial, sans-serif;

}

.info a {

color: #e4ef80;

font-weight: bold;

}

.demo-2 .info a {

color: #606F4F;

}

.info a:hover {

color: #fff;

}

.codrops-links {

position: relative;

display: inline-block;

white-space: nowrap;

text-align: center;

font-size: 0.85em;

margin: 0.5em 0 0;

}

.codrops-links::after {

position: absolute;

top: 0;

left: 50%;

width: 1px;

height: 100%;

background: rgba(255,255,255,0.5);

content: '';

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

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

}

.codrops-icon {

display: inline-block;

margin: 0.5em;

padding: 0em 0;

width: 1.5em;

text-decoration: none;

}

.codrops-icon:before {

margin: 0 5px;

text-transform: none;

font-weight: normal;

font-style: normal;

font-variant: normal;

font-family: 'codropsicons';

line-height: 1;

speak: none;

-webkit-font-smoothing: antialiased;

}

.codrops-icon span {

display: none;

}

.codrops-icon--drop:before {

content: "\e001";

}

.codrops-icon--prev:before {

content: "\e004";

}

index:

s-21,66.43-21,151C280,229.646,301,301,301,301z">

C301,229.646,301,301,301,301z" />

Playful Trampoline Effect

Drag the stack or click the button to navigate.

See the rotating version

blog_15bc71a9e0102ycr6.html

blog_15bc71a9e0102ycr6.html

blog_15bc71a9e0102ycr6.html

blog_15bc71a9e0102ycr6.html

blog_15bc71a9e0102ycr6.html

blog_15bc71a9e0102ycr6.html

Next

"Once you have eliminated the impossible, whatever remains,

however improbable, must be the truth."

#RIPLeonardNimoy by James

Olstein

"The needs of the many outweigh the needs of the few, or the

one."

Mr. Spock by Mustafa Kural

"Insufficient facts always invite danger."

LLAP by Sarah McKay

"Without followers, evil cannot spread."

"Logic is the beginning of wisdom, not the end."

"Change is the essential process of all existence."

RIP Spock by Sahirul Iman

(function() {

var body = document.body,

titles = [].slice.call( document.querySelectorAll( '#stack-titles

> li' ) ),

totalTitles = titles.length,

stack = new ElastiStack( document.getElementByIdx_x( 'elasticstack' ),

{

onUpdateStack : function( idx ) {

classie.remove( titles[idx === 0 ? totalTitles - 1 : idx - 1],

'current' );

classie.add( titles[idx], 'current' );

}

} ),

shapeEl = document.getElementByIdx_x( 'morph-shape' ),

s = Snap( shapeEl.querySelector( 'svg' ) ),

pathEl = s.select( 'path' ),

paths = {

reset : pathEl.attr( 'd' ),

next : shapeEl.getAttribute( 'data-morph-next' )

};

document.getElementByIdx_x( 'stack-next' ).addEventListener(

'mousedown', nextItem );

function nextItem() {

classie.add( body, 'animating' );

classie.add( body, 'navigate-next' );

pathEl.stop().animate( { 'path' : paths.next }, 450,

mina.easeinout, function() {

classie.remove( body, 'navigate-next' );

stack.nextItem( { transform : 'translate3d(0,-60px,400px)' } );

pathEl.stop().animate( { 'path' : paths.reset }, 100, mina.easeout,

function() {

classie.remove( body, 'animating' );

} );

} );

}

})();

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值