当前位置: 首页 > news >正文

营销网站建设计划书深圳网站建设设计首选公司

营销网站建设计划书,深圳网站建设设计首选公司,wordpress站点费用,哪个网站可以做字体大小效果演示 实现了一个太阳系动画#xff0c;其中包括了地球、火星、金星、土星、水星、天王星、海王星以及火卫二号等行星的动画效果。太阳系的行星都被放在一个固定的容器中#xff0c;并使用CSS动画来实现旋转和移动的效果。当太阳系的行星绕着太阳运行时#xff0c;它们会… 效果演示 实现了一个太阳系动画其中包括了地球、火星、金星、土星、水星、天王星、海王星以及火卫二号等行星的动画效果。太阳系的行星都被放在一个固定的容器中并使用CSS动画来实现旋转和移动的效果。当太阳系的行星绕着太阳运行时它们会围绕太阳旋转并且在运行过程中会发生碰撞和交叉。 Code div classwrapperdiv classneptune-containerimg srcimg/neptune.png //divdiv classuranus-containerimg srcimg/uranus.svg //divdiv classsaturn-containerimg srcimg/saturn.png //divdiv classjupiter-containerimg srcimg/jupiter.png //divdiv classmars-containerimg srcimg/mars.png //divdiv classearth-containerimg srcimg/earth.png //divdiv classvenus-containerimg srcimg/venus.png //divdiv classmercury-containerimg srcimg/mercury.png //divdiv classsun-containerimg srcimg/sun.png //div /div* {margin: 0;padding: 0;box-sizing: border-box; }body {display: flex;justify-content: center;align-items: center;height: 100vh;background-image: url(img/space-background.jpg) }.wrapper {height: 100%;width: 100%;display: flex;justify-content: center;align-items: center; }.wrapper div {position: absolute;border-radius: 100%;display: flex;justify-content: center;align-items: center;border: 1px solid white;position: absolute; }.neptune-container {height: 850px;width: 850px; }.neptune-containerimg {height: 50px;width: 50px;animation: neptune-rotation 53954ms linear infinite; }.uranus-container {height: 750px;width: 750px; }.uranus-containerimg {height: 75px;width: 75px;animation: uranus-rotation 37054ms linear infinite; }.saturn-container {height: 600px;width: 600px; }.saturn-containerimg {height: 75px;width: 75px;animation: saturn-rotation 33218ms linear infinite; }.jupiter-container {height: 500px;width: 500px; }.jupiter-containerimg {height: 75px;width: 75px;animation: jupiter-rotation 27339ms linear infinite; }.mars-container {height: 400px;width: 400px; }.mars-containerimg {height: 35px;width: 35px;animation: mars-rotation 12684ms linear infinite; }.earth-container {height: 350px;width: 350px; }.earth-containerimg {height: 30px;width: 30px;animation: earth-rotation 11079ms linear infinite; }.venus-container {height: 300px;width: 300px; }.venus-containerimg {height: 20px;width: 20px;animation: venus-rotation 7259ms linear infinite; }.mercury-container {height: 250px;width: 250px; }.mercury-containerimg {height: 15px;width: 15px;animation: mercury-rotation 5768ms linear infinite; }.sun-container {height: 200px;width: 200px;border-radius: 100%;display: flex;justify-content: center;align-items: center; }.sun-containerimg {height: 310px;width: 310px; }keyframes neptune-rotation {0% {transform: rotate(0deg) translate(425px) rotate(0deg);}100% {transform: rotate(360deg) translate(425px) rotate(360deg);} }keyframes uranus-rotation {0% {transform: rotate(0deg) translate(375px) rotate(0deg);}100% {transform: rotate(360deg) translate(375px) rotate(360deg);} }keyframes saturn-rotation {0% {transform: rotate(0deg) translate(300px) rotate(0deg);}100% {transform: rotate(360deg) translate(300px) rotate(360deg);} }keyframes jupiter-rotation {0% {transform: rotate(0deg) translate(250px) rotate(0deg);}100% {transform: rotate(360deg) translate(250px) rotate(360deg);} }keyframes mars-rotation {0% {transform: rotate(0deg) translate(200px) rotate(0deg);}100% {transform: rotate(360deg) translate(200px) rotate(360deg);} }keyframes earth-rotation {0% {transform: rotate(0deg) translate(175px) rotate(0deg);}100% {transform: rotate(360deg) translate(175px) rotate(360deg);} }keyframes venus-rotation {0% {transform: rotate(0deg) translate(150px) rotate(0deg);}100% {transform: rotate(360deg) translate(150px) rotate(360deg);} }keyframes mercury-rotation {0% {transform: rotate(0deg) translate(125px) rotate(0deg);}100% {transform: rotate(360deg) translate(125px) rotate(360deg);} }实现思路拆分 * {margin: 0;padding: 0;box-sizing: border-box; }这段代码是设置全局样式包括设置元素的盒模型为border-box即盒模型的宽度和高度包括内容、内边距、边框和外边距。 body {display: flex;justify-content: center;align-items: center;height: 100vh;background-image: url(img/space-background.jpg) }这段代码是设置整个页面的样式包括设置页面的高度为100vh即视口的高度使页面填充整个屏幕。同时设置页面的背景图片为space-background.jpg。 .wrapper {height: 100%;width: 100%;display: flex;justify-content: center;align-items: center; }这段代码是设置一个容器的样式包括设置容器的高度和宽度为100%使容器填充整个屏幕。同时设置容器的显示方式为flex使容器中的元素可以自动排列。 .wrapper div {position: absolute;border-radius: 100%;display: flex;justify-content: center;align-items: center;border: 1px solid white;position: absolute; }这段代码是设置太阳系中的行星的样式包括设置行星的位置为绝对定位使其相对于容器的位置进行定位。同时设置行星的圆角半径为100%使其变成一个圆形。设置行星的显示方式为flex使其中的元素可以自动排列。设置行星的边框为1px solid white使其看起来像一个白色的圆形。 .neptune-container {height: 850px;width: 850px; }.neptune-containerimg {height: 50px;width: 50px;animation: neptune-rotation 53954ms linear infinite; }这段代码是设置尼普斯星的样式包括设置行星的高度和宽度为850px使其变成一个圆形。同时设置行星的动画效果为neptune-rotation即使用CSS动画实现行星的旋转效果。 .uranus-container {height: 750px;width: 750px; }.uranus-containerimg {height: 75px;width: 75px;animation: uranus-rotation 37054ms linear infinite; }这段代码是设置乌拉斯星的样式包括设置行星的高度和宽度为750px使其变成一个圆形。同时设置行星的动画效果为uranus-rotation即使用CSS动画实现行星的旋转效果。 .saturn-container {height: 600px;width: 600px; }.saturn-containerimg {height: 75px;width: 75px;animation: saturn-rotation 33218ms linear infinite; }这段代码是设置土星的样式包括设置行星的高度和宽度为600px使其变成一个圆形。同时设置行星的动画效果为saturn-rotation即使用CSS动画实现行星的旋转效果。 .jupiter-container {height: 500px;width: 500px; }.jupiter-containerimg {height: 75px;width: 75px;animation: jupiter-rotation 27339ms linear infinite; }这段代码是设置木星的样式包括设置行星的高度和宽度为500px使其变成一个圆形。同时设置行星的动画效果为jupiter-rotation即使用CSS动画实现行星的旋转效果。 .mars-container {height: 400px;width: 400px; }这段代码是设置火星的样式包括设置行星的高度和宽度为400px使其变成一个圆形。 .mars-containerimg {height: 35px;width: 35px;animation: mars-rotation 12684ms linear infinite; }这段代码是设置火星的图片样式包括设置图片的高度和宽度为35px使其变成一个圆形。同时设置图片的动画效果为mars-rotation即使用CSS动画实现行星的旋转效果。 .earth-container {height: 350px;width: 350px; }这段代码是设置地球的样式包括设置行星的高度和宽度为350px使其变成一个圆形。 .earth-containerimg {height: 30px;width: 30px;animation: earth-rotation 11079ms linear infinite; }这段代码是设置地球的图片样式包括设置图片的高度和宽度为30px使其变成一个圆形。同时设置图片的动画效果为earth-rotation即使用CSS动画实现行星的旋转效果。 .venus-container {height: 300px;width: 300px; }这段代码是设置金星的样式包括设置行星的高度和宽度为300px使其变成一个圆形。 .venus-containerimg {height: 20px;width: 20px;animation: venus-rotation 7259ms linear infinite; }这段代码是设置金星的图片样式包括设置图片的高度和宽度为20px使其变成一个圆形。同时设置图片的动画效果为venus-rotation即使用CSS动画实现行星的旋转效果。 .mercury-container {height: 250px;width: 250px; }这段代码是设置水星的样式包括设置行星的高度和宽度为250px使其变成一个圆形。 .mercury-containerimg {height: 15px;width: 15px;animation: mercury-rotation 5768ms linear infinite; }这段代码是设置水星的图片样式包括设置图片的高度和宽度为15px使其变成一个圆形。同时设置图片的动画效果为mercury-rotation即使用CSS动画实现行星的旋转效果。 .sun-container {height: 200px;width: 200px;border-radius: 100%;display: flex;justify-content: center;align-items: center; }这段代码是设置太阳的样式包括设置行星的高度和宽度为200px使其变成一个圆形。同时设置行星的圆角半径为100%使其变成一个圆形。设置行星的显示方式为flex使其中的元素可以自动排列。设置行星的居中方式为居中对齐使其在容器中居中显示。 .sun-containerimg {height: 310px;width: 310px; }这段代码是设置太阳的图片样式包括设置图片的高度和宽度为310px使其变成一个圆形。 keyframes neptune-rotation {0% {transform: rotate(0deg) translate(425px) rotate(0deg);}100% {transform: rotate(360deg) translate(425px) rotate(360deg);} }这段代码是定义了一个名为neptune-rotation的CSS动画用于实现尼普斯星的旋转动画。该动画包含两个关键帧分别为0%和100%。在0%时尼普斯星的旋转角度为0度并向右移动425px。在100%时尼普斯星的旋转角度为360度并向右移动425px。 keyframes uranus-rotation {0% {transform: rotate(0deg) translate(375px) rotate(0deg);}100% {transform: rotate(360deg) translate(375px) rotate(360deg);} }这段代码是定义了一个名为uranus-rotation的CSS动画用于实现乌拉斯星的旋转动画。该动画包含两个关键帧分别为0%和100%。在0%时乌拉斯星的旋转角度为0度并向右移动375px。在100%时乌拉斯星的旋转角度为360度并向右移动375px。 keyframes saturn-rotation {0% {transform: rotate(0deg) translate(300px) rotate(0deg);}100% {transform: rotate(360deg) translate(300px) rotate(360deg);} }这段代码是定义了一个名为saturn-rotation的CSS动画用于实现土星的旋转动画。该动画包含两个关键帧分别为0%和100%。在0%时土星的旋转角度为0度并向右移动300px。在100%时土星的旋转角度为360度并向右移动300px。 keyframes jupiter-rotation {0% {transform: rotate(0deg) translate(250px) rotate(0deg);}100% {transform: rotate(360deg) translate(250px) rotate(360deg);} }这段代码是定义了一个名为jupiter-rotation的CSS动画用于实现木星的旋转动画。该动画包含两个关键帧分别为0%和100%。在0%时木星的旋转角度为0度并向右移动250px。在100%时木星的旋转角度为360度并向右移动250px。 keyframes mars-rotation {0% {transform: rotate(0deg) translate(200px) rotate(0deg);}100% {transform: rotate(360deg) translate(200px) rotate(360deg);} }这段代码是定义了一个名为mars-rotation的CSS动画用于实现火星的旋转动画。该动画包含两个关键帧分别为0%和100%。在0%时火星的旋转角度为0度并向右移动200px。在100%时火星的旋转角度为360度并向右移动200px。 keyframes earth-rotation {0% {transform: rotate(0deg) translate(175px) rotate(0deg);}100% {transform: rotate(360deg) translate(175px) rotate(360deg);} }这段代码是设置地球的动画效果包括设置动画的名称为earth-rotation即使用CSS动画实现地球的旋转效果。在0%时将地球的位置设置为0deg并将其向右移动175px。在100%时将地球的位置设置为360deg并将其向右移动175px。 keyframes venus-rotation {0% {transform: rotate(0deg) translate(150px) rotate(0deg);}100% {transform: rotate(360deg) translate(150px) rotate(360deg);} }这段代码是设置金星的动画效果包括设置动画的名称为venus-rotation即使用CSS动画实现金星的旋转效果。在0%时将金星的位置设置为0deg并将其向右移动150px。在100%时将金星的位置设置为360deg并将其向右移动150px。 keyframes mercury-rotation {0% {transform: rotate(0deg) translate(125px) rotate(0deg);}100% {transform: rotate(360deg) translate(125px) rotate(360deg);} }这段代码是设置水星的动画效果包括设置动画的名称为mercury-rotation即使用CSS动画实现水星的旋转效果。在0%时将水星的位置设置为0deg并将其向右移动125px。在100%时将水星的位置设置为360deg并将其向右移动125px。
http://www.zqtcl.cn/news/263425/

相关文章:

  • 中航建设集团网站vps网站无法通过ip访问
  • 学生求职网站的需求分析怎么做江西手机版建站系统开发
  • 电商网站开发文献综述嵌入式软件开发项目
  • 网站备案怎样提交管局网站建设基本步骤
  • 国外优秀电商设计网站开发网站公司推荐
  • 国外企业网站建设模型网站建设谈客户说什么
  • 肖港网站开发公司网站的用途
  • 百度网站置顶怎么做效果图制作设计
  • 自适应企业网站用什么框架做重庆在线观看
  • 网站做301重定向的作用辽宁网站建设电话
  • 抚州市建设局官方网站高端网页设计人才
  • 移动商城网站建设 深圳北京网站建站公
  • 网站的对比免费网站建设排名
  • 织梦做的网站别人提交给我留的言我去哪里看怎样发展网站
  • 滨州公司网站建设推广地下城做解封任务的网站
  • 做国外的众筹网站北京的网站建设公司哪家好
  • 网站建设费用一年多少钱商洛城乡建设局网站
  • 网站视觉设计原则四个商城建设
  • WordPress站点添加ssl证书网站在百度无法验证码怎么办
  • 做ppt图片用的网站有哪些问题搭建网站合同
  • 杭州网站建设推荐q479185700上墙网站推广费用入什么科目
  • 天津网站建设 熊掌号设计网站大全
  • 网站建设不力 被问责上海传媒公司有哪些
  • 在线购物网站的设计阿里巴巴网站建设
  • 宿迁网站制作公司河北省建设工程协会网站
  • 美丽寮步网站建设做招聘的网站有哪些内容
  • 服装商店的网站建设要求企业所得税率
  • 南联网站建设公司注册企业查询
  • 商业网站的网址买网站服务器吗
  • 专业的单位网站开发网站开发和网页开发有什么区别