css3效果摩天轮

  • 效果图
  • html代码
  • css3代码
  • 完整代码

效果图

html代码

<div class="box"><div class="wheel"><ul><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul></div><div class="bracket"></div><div class="bracketsmall"></div><div class="bigtitle"></div><div class="title"></div><div class="arrow"></div></div>

css3代码

<style>*{margin:0px;padding: 0px;}body{background: url("images/2.jpg");background-size: cover;background-position: center center;}.box{/*border:solid 1px red;*/width: 1000px;height: 1000px;margin:0px auto;position: relative;}.wheel{background: url("images/fsw.png");height:768px;width: 768px;margin: 0px auto;-webkit-animation:wheelrotation 10s linear infinite;position: relative;}.bracket{width: 358px;height: 529px;background: url("images/bracket.png");position: absolute;left:318px;top:375px;}.bracketsmall{width: 247px;height: 505px;background: url("images/bracketsmall.png");position: absolute;left:375px;top:382px;z-index:-2;}.bigtitle{width: 577px;height: 257px;position: absolute;left: 212px;top: 269px;background-image: url("images/big-title.png");}.title{width: 413px;height: 139px;position: absolute;left: 306px;top: 464px;background-image: url("images/title.png");}.arrow{width: 48px;height: 64px;position: absolute;left: 482px;top: 550px;background-image: url("images/arrow.png");}ul{list-style: none;}li{height:170px;width: 130px;position: absolute;-webkit-animation:childrotation 10s linear infinite;-webkit-transform-origin:50% 0;}li:nth-child(1){background: url("images/boy.png");left: 330px;top:0px;}li:nth-child(2){background: url("images/dog.png");left: 594px;top:125px;}li:nth-child(3){background: url("images/girl.png");left: 694px;top:370px;}li:nth-child(4){background: url("images/girls.png");left: 594px;top:650px;}li:nth-child(5){background: url("images/hairboy.png");left: 330px;top:740px;}li:nth-child(6){background: url("images/mimi.png");left: 94px;top:640px;}li:nth-child(7){background: url("images/mudog.png");left: -6px;top:370px;}li:nth-child(8){background: url("images/shamegirl.png");left: 94px;top:125px;}@-webkit-keyframes wheelrotation{0%{-webkit-transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);}}@-webkit-keyframes childrotation{0%{-webkit-transform:rotate(0deg);}100%{-webkit-transform:rotate(-360deg);}}</style>

完整代码

<html>
<head><title>旋转摩天轮</title><meta charset="utf-8"/><style>*{margin:0px;padding: 0px;}body{background: url("images/2.jpg");background-size: cover;background-position: center center;}.box{/*border:solid 1px red;*/width: 1000px;height: 1000px;margin:0px auto;position: relative;}.wheel{background: url("images/fsw.png");height:768px;width: 768px;margin: 0px auto;-webkit-animation:wheelrotation 10s linear infinite;position: relative;}.bracket{width: 358px;height: 529px;background: url("images/bracket.png");position: absolute;left:318px;top:375px;}.bracketsmall{width: 247px;height: 505px;background: url("images/bracketsmall.png");position: absolute;left:375px;top:382px;z-index:-2;}.bigtitle{width: 577px;height: 257px;position: absolute;left: 212px;top: 269px;background-image: url("images/big-title.png");}.title{width: 413px;height: 139px;position: absolute;left: 306px;top: 464px;background-image: url("images/title.png");}.arrow{width: 48px;height: 64px;position: absolute;left: 482px;top: 550px;background-image: url("images/arrow.png");}ul{list-style: none;}li{height:170px;width: 130px;position: absolute;-webkit-animation:childrotation 10s linear infinite;-webkit-transform-origin:50% 0;}li:nth-child(1){background: url("images/boy.png");left: 330px;top:0px;}li:nth-child(2){background: url("images/dog.png");left: 594px;top:125px;}li:nth-child(3){background: url("images/girl.png");left: 694px;top:370px;}li:nth-child(4){background: url("images/girls.png");left: 594px;top:650px;}li:nth-child(5){background: url("images/hairboy.png");left: 330px;top:740px;}li:nth-child(6){background: url("images/mimi.png");left: 94px;top:640px;}li:nth-child(7){background: url("images/mudog.png");left: -6px;top:370px;}li:nth-child(8){background: url("images/shamegirl.png");left: 94px;top:125px;}@-webkit-keyframes wheelrotation{0%{-webkit-transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);}}@-webkit-keyframes childrotation{0%{-webkit-transform:rotate(0deg);}100%{-webkit-transform:rotate(-360deg);}}</style>
</head>
<body><div class="box"><div class="wheel"><ul><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul></div><div class="bracket"></div><div class="bracketsmall"></div><div class="bigtitle"></div><div class="title"></div><div class="arrow"></div></div>
</body>
</html>

css3实现摩天轮特效相关推荐

  1. 用css3实现摩天轮旋转的动画效果

    用css3实现摩天轮旋转的动画效果 1.CSS3 @keyframes 规则 如需在 CSS3 中创建动画,您需要学习 @keyframes 规则. @keyframes 规则用于创建动画.在 @ke ...

  2. CSS3 摩天轮旋转特效

    1.效果图 2.案例分析 这各效果分别由两部分组成:摩天轮和小朋友. 摩天轮作为div(居中显示)的背景图片 小朋友是通过定位定在指定位置的 通过css3 动画animation与transform属 ...

  3. 简单html摩天轮动画效果,2D模拟实现摩天轮旋转动画特效

    这次给大家带来2D模拟实现摩天轮旋转动画特效,使用2D模拟实现摩天轮旋转动画特效的注意事项有哪些,下面就是实战案例,一起来看一下. 先看效果图: 由于上传的大小原因,只能录制成这种效果,原图是无限循环 ...

  4. html摩天轮效果,用CSS3 animation模拟摩天轮旋转动画效果

    这次我们来实现一个简单又很有意思的动画效果,完全由CSS 的animation来实现,素材和源码来自于其他网站,个人对源码做了一些改动优化 完成后的效果--旋转效果 (github pages打开特别 ...

  5. html摩天轮效果,CSS3 2D模拟实现摩天轮旋转效果

    先看效果图: 由于上传的大小原因,只能录制成这种效果,原图是无限循环的转圈. 代码: 模拟摩天轮动画 *{margin:0;padding:0;} .image{width:80px;height:8 ...

  6. 很哇塞的网页特效之摩天轮相册

    情人节到了,给大家分享一个仿摩天轮效果的相册页面,效果如下图: 页面主要部分是图片列表,使用div包裹: <div class="carousel-item">< ...

  7. css3动画实现摩天轮效果

    原谅我不会搞动图看不到效果 <!DOCTYPE html> <html><head><meta charset="utf-8">&l ...

  8. html5 banner特效,HTML5特效库 CSS3遮罩banner动画特效源码

    效果图 各位朋友.大家早上好! 今天给大家带来的是 CSS3遮罩banner动画特效源码! 看倦的轮播图的,可以试试这个特效!别有一番意思! 大家可以按照自己的意愿进行行修改,改成自己喜欢的样子! 有 ...

  9. html图片轮播思路,css3如何实现轮播图?css3实现轮播图片的方法

    我们在网页上经常会看到有一块位置会有很多的图片来回切换,这就是轮播图,轮播图的出现,让重要的信息可以在一个位置显现,那么,轮播图是如何实现的呢?轮播图的实现用js或者css都可以,本篇文章就来给大家介 ...

最新文章

  1. 清华大学计算机博士,带你搞定大厂面试题
  2. 计算各种形钢的重量用什么软件_造价常用工具不会用,30个常用工程算量工具免费送,速来领取收藏...
  3. 十进制、十六进制、二进制习题
  4. WCF中的web.config配置文件
  5. C++ Exercises(十五)--排序算法的简单实现
  6. 小程序的wx.onAccelerometerChange
  7. cfar恒虚警matlab实现,一种用于距离副瓣抑制的自适应恒虚警方法与流程
  8. 047 一维数据的格式化和处理
  9. 小米10至尊纪念版今日开卖:120hz高刷+120W秒充
  10. mysql crc16_MySQL 5.6 中TIMESTAMP with implicit DEFAULT value is deprecated错误
  11. error: storage class specified for parameter问题-转
  12. MySQL安装与java配合
  13. JMETER从数据库获取数据作为脚本参数
  14. ubuntu18.04安装网卡驱动
  15. App下载的视频导进电脑中生成.mp4文件的方法
  16. 专属微信二维码python制作_如何通过一行代码制作个人专属动态微信二维码?
  17. 小白学 Python 数据分析(4):Pandas——数据导入
  18. 九宫格摆法_九宫格婚纱照摆法图片与技巧
  19. 每日一课 | AES加密和解密(CBC模式)
  20. Ubuntu下vim如何保存退出

热门文章

  1. 【Python案例】——给pycharm设置背景图片【超简单】
  2. SSH客户端-服务端
  3. java毕业设计辅助教育系统mybatis+源码+调试部署+系统+数据库+lw
  4. 无线电线路: 5G和你后院的信号塔
  5. stm32f103单线半双工uart通信程序
  6. 手机web——自适应网页设计
  7. OpenJudge-7221:拯救公主
  8. Android 8.1 MTK root版本解决方案
  9. 关于IAR Unable to open file错误的方法
  10. (二十四)List系列集合