本文主要包含css3照片墙,css3动画特效,html5 css3动画特效,css3特效,css3图片特效等相关知识,佚名 希望在学习及工作中可以帮助到您
本文实例为大家分享利用CSS3动画制作照片墙的详细步骤,供大家参考,具体内容如下
第一种实现效果:
Html代码如下:
</div>- <body>
- <h2>照片墙制作</h2>
- <div class="container">
- <img class="img1" src="img/img (1).jpg" height="150" width="150" alt="">
- <img class="img2" src="img/img (2).jpg" height="160" width="200" alt="">
- <img class="img3" src="img/img (3).jpg" height="170" width="200" alt="">
- <img class="img4" src="img/img (4).jpg" height="240" width="200" alt="">
- <img class="img5" src="img/img (5).jpg" height="300" width="300" alt="">
- </div>
- </body>
CSS代码如下:
</div>- <style>
- * {margin:0; padding:0;}
- body { background-color: #eee; padding-top: 50px;}
- h2 { text-align: center;}
- .container { position: relative; width:1000px; height:700px; margin:0px auto; }
- img { position: absolute; top:50px; left:100px; cursor: pointer;
- padding:10px 10px 25px; background-color: #fff; border:1px solid #ddd;
- transition:0.5s; box-shadow: 3px