html产品折叠效果图,HTML5 图片叠起和展开动效

CSS

语言:

CSSSCSS

确定

html {

padding:0;

margin: 0;

}

body {

color: #333333;

font-family: "lucida grande", tahoma, verdana, arial, sans-serif;

font-size: 11px;

padding: 0;

margin: 0;

text-align: left;

line-height: 1.25em;

}

#page_wrap {

border: 1px solid #ccc;

background: whitesmoke;

width: 990px;

height:300px;

margin-left: auto;

margin-right: auto;

margin-top:50px;

}

.image_stack img { /* css style for photo stack */

border: none;

text-decoration: none;

position: absolute;

margin-left:0px;

width: 158px;

height: 158px;

}

.image_stack { /* css style for photo stack */

width: 400px;

position: absolute;

margin:60px 10px 10px 300px;

}

.image_stack img { /* css style for photo stack */

position: absolute;

border: 4px solid #FFF;

box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);

-moz-box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);

-webkit-box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);

z-index: 9999;

/* Firefox */

-moz-transition: all 0.2s ease;

/* WebKit */

-webkit-transition: all 0.2s ease;

/* Opera */

-o-transition: all 0.2s ease;

/* Standard */

transition: all 0.2s ease;

}

.image_stack #photo1 { /* position of last photo in the stack */

top: 8px;

left: 108px;

}

.image_stack #photo2 {/* position of middle photo in the stack */

top: 6px;

left: 104px;

}

.image_stack #photo3 {/* position of first photo at the top in the stack */

top: 4px;

left: 100px;

right: 100px;

}

.image_stack .rotate1 {/* rotate last image 15 degrees to the right */

-webkit-transform: rotate(15deg); /* safari and chrome */

-moz-transform: rotate(15deg);/*firefox browsers */

transform: rotate(15deg);/*other */

-ms-transform:rotate(15deg); /* Internet Explorer 9 */

-o-transform:rotate(15deg); /* Opera */

}

.image_stack .rotate2 {/* css not used*/

-webkit-transform: rotate(0deg); /* safari and chrome */

-moz-transform: rotate(0deg);/*firefox browsers */

transform: rotate(0deg);/*other */

-ms-transform:rotate(0deg); /* Internet Explorer 9 */

-o-transform:rotate(0deg); /* Opera */

}

.image_stack .rotate3 {/*rotate first image 15 degrees to the left*/

-webkit-transform: rotate(-15deg); /* safari and chrome */

-moz-transform: rotate(-15deg); /*firefox browsers */

transform: rotate(-15deg);/*other */

-ms-transform:rotate(-15deg); /* Internet Explorer 9 */

-o-transform:rotate(-15deg); /* Opera */

cursor: pointer;

}

ul#pics li {/*css style for the single photo only **/

background: none repeat scroll 0 0 #FFFFFF;

box-shadow: 1px 1px 1px #999999;

display: inline-block;

width: 153px;

height:157px;

-webkit-transition: all .2s ease-in-out;

-moz-transition: all .2s ease-in-out;

-o-transition: all .2s ease-in-out;

-ms-transition: all .2s ease-in-out;

transition: all .2s ease-in-out;

}

ul#pics li img {/*css style for the single photo only **/

width: 150px;

height:150px;

display: block;

}

ul#pics li:hover {/*css style for the single photo only **/

-moz-transform: scale(1.1) rotate(0deg);

-webkit-transform: scale(1.1) rotate(0deg);

-o-transform: scale(1.1) rotate(0deg);

-ms-transform: scale(1.1) rotate(0deg);

transform: scale(1.1) rotate(0deg);

}

.single_photo {/*css style for the single photo only **/

margin-top : 80px;

margin-left:100px;

margin-top:65px;

}

h3 {

margin:25px;

}

a, a:visited, a:hover {

color: #54A6DE;

outline: medium none;

text-decoration: none;

}

#footer { /* demo footer text */

font-size:9px;

margin-top:300px;

margin-left: 250px;

color: #888888;

}

#text {

margin-top:10px;

margin-left:10px;

color: #DD4B39;

font-type: arial, sans-serif;

font-size:17px;

}

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值