实现html页面及css3动画
2017-11-04 10:22
274 查看
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> *{ margin:0 auto; } body{ background-image: url("img/bg.jpg"); -webkit-background-size: cover; background-size: cover; } .d1{ width:1500px; height: 250px; text-align: center; } .d2{ width:1500px; height: 100px; text-align: center; } .d3{ width:1500px; text-align: center; } span{ position: relative; } input{ height: 40px; border: 1px solid dodgerblue; } input:hover{ transform:scale(1.5); } .btn{ width: 150px; height: 45px; font-size: 16px; border: none; background:dodgerblue; color: #fff; } .btn:hover{ transform: scale(2); color:red; } .i{ position: absolute; right: 8px; width:30px; height: 30px; margin-top:10px; } .i:hover{ /*background: url("img/camera_on.png");*/ transform: scale(1.2); } ul{ width: 900px; } ul li{ list-style: none; float: left; margin:10px; } .ul1:hover{ transform:rotate(360deg); transition:3s; } .ul2:hover{ transform:rotate(-360deg); transition:3s; } .img1:hover{ -webkit-transform:rotate(360deg) ; -moz-transform:rotate(360deg) ; -ms-transform:rotate(360deg) ; -o-transform:rotate(360deg) ; transform: rotate(360deg); transition: transform 1s; } .img2:hover{ -webkit-transform:rotate(-360deg) ; -moz-transform:rotate(-360deg) ; -ms-transform:rotate(-360deg) ; -o-transform:rotate(-360deg) ; transform: rotate(-360deg); transition: transform 1s; } .img3:hover{ -webkit-transform: scale(1.5); -moz-transform: scale(1.5); -ms-transform: scale(1.5); -o-transform: scale(1.5); transform: scale(1.5); -webkit-transition: transform 1s; -moz-transition: transform 1s; -ms-transition: transform 1s; -o-transition: transform 1s; transition: transform 1s; } .img4:hover{ -webkit-transform: skew(50deg); -moz-transform: skew(50deg); -ms-transform: skew(50deg); -o-transform: skew(50deg); transform: skew(50deg); } </style> </head> <body> <div> <div class="d1"><img src="img/logo.png" /></div> <div class="d2"><span><input type="text" size="70"/><img class="i" src="img/camera_off.png"/></span> <button class="btn"> 百度一下</button></div> <div class="d3"> <ul class="ul1"> <li><img src="img/top1.jpg" width="150px" height="150px" class="img1"/></li> <li><img src="img/top2.png" width="150px" height="150px"/></li> <li><img src="img/top3.png" width="150px" height="150px"/></li> <li><img src="img/top4.jpg" width="150px" height="150px"/></li> <li><img src="img/top5.jpg" width="150px" height="150px"/></li> </ul> <ul class="ul2"> <li><img src="img/bottom1.jpg" width="150px" height="150px" class="img2"/></li> <li><img src="img/bottom2.jpg" width="150px" height="150px"/></li> <li><img src="img/bottom3.jpg" width="150px" height="150px" class="img3"/></li> <li><img src="img/bottom4.png" width="150px" height="150px" class="img4"/></li> <li><img src="img/bottom5.png" width="150px" height="150px"/></li> </ul> </div> </div> </body> </html>
相关文章推荐
- CSS3实现页面图案飘落动画
- HTML5+CSS3构建同页面表单间的动画切换
- HTML+TIME2,纯HTML实现页面动画效果。
- HTML5+CSS3构建同页面表单间的动画切换
- html通过js实现页面加载动画
- HTML5+CSS3构建同页面表单间的动画切换
- HTML5+CSS3构建同页面表单间的动画切换
- 原生JS+CSS(CSS3)+HTML实现页面弹框
- 利用html5/css3 动画效果,实现图片果冻抖动效果
- 从0开始html前端页面开发_CSS实现图像获取鼠标焦点逐渐变大动画效果
- HTML5+CSS3实现图片可倾斜摆放的动画相册效果
- html5+css3实现2D动画效果演示
- html+css3实现简单加载动画,loading实现
- HTML5+CSS3构建同页面表单间的动画切换
- Html+CSS3技术实现动画、天气图标动态效果 效果很酷
- HTML5+CSS3构建同页面表单间的动画切换
- html+css3太阳系行星运转动画效果的实现代码
- HTML5+CSS3实现iOS Path菜单特效,动画效果很酷
- 前端技术:迅雷7.9宣传下载页面CSS3动画实现心得
- 【技术控】 如何做按钮小动画?HTML+CSS3