最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

基于css3小船水面游动动画特效_html/css

来源:动视网 责编:小采 时间:2020-11-27 16:11:06
文档

基于css3小船水面游动动画特效_html/css

基于css3小船水面游动动画特效_html/css_WEB-ITnose:基于css3小船水面游动动画特效,这是一款色彩鲜艳扁平风格的css3动画特效。效果图如下: 在线预览 源码下载 实现的代码。 html代码: css代码: * { padding: 0; margin: 0; } body { position: relative; ba
推荐度:
导读基于css3小船水面游动动画特效_html/css_WEB-ITnose:基于css3小船水面游动动画特效,这是一款色彩鲜艳扁平风格的css3动画特效。效果图如下: 在线预览 源码下载 实现的代码。 html代码: css代码: * { padding: 0; margin: 0; } body { position: relative; ba


基于css3小船水面游动动画特效,这是一款色彩鲜艳扁平风格的css3动画特效。效果图如下:

在线预览 源码下载

实现的代码。

html代码:

 

css代码:

* { padding: 0; margin: 0; } body { position: relative; background: #0cc; overflow: hidden; } .land { height: 100px; width: 100%; position: absolute; top: 270px; background: #afa; } .land_01 { width: 0; height: 0; border-left: 300px solid transparent; border-bottom: 120px solid #afa; position: absolute; left: 0px; top: -120px; } .land_01:after { content: ""; width: 0; height: 0; border-right: 150px solid transparent; border-bottom: 120px solid #afa; position: absolute; } .land_02 { width: 0; height: 0; border-left: 300px solid transparent; border-bottom: 100px solid #afa; position: absolute; left: 150px; top: -100px; } .land_02:after { content: ""; width: 0; height: 0; border-right: 350px solid transparent; border-bottom: 100px solid #afa; position: absolute; left: 0px; } .land_03 { width: 0; height: 0; border-left: 200px solid transparent; border-bottom: 20px solid #afa; position: absolute; left: 700px; top: -20px; } .land_03:after { content: ""; width: 0; height: 0; border-right: 150px solid transparent; border-bottom: 20px solid #afa; position: absolute; left: 0px; } .land_04 { width: 0; height: 0; border-left: 200px solid transparent; border-bottom: 50px solid #afa; position: absolute; left: 1000px; top: -50px; } .land_04:after { content: ""; width: 0; height: 0; border-right: 150px solid transparent; border-bottom: 50px solid #afa; position: absolute; left: 0px; } .ship { position: absolute; width: 400px; height: 370px; top: 100px; left: 0%; animation: boat 20s infinite; -webkit-animation: boat 20s infinite; } .ship_01 { width: 0; height: 0; border-left: 150px solid transparent; border-bottom: 300px solid #ff5d; position: absolute; left: 140px; } .ship_01:before { content: ""; width: 0px; height: 0px; border-left: 80px solid transparent; border-bottom: 180px solid #FF5D; position: absolute; left: -275px; top: 120px; } .ship_02 { width: 250px; height: 40px; background: #ff5d; position: absolute; top: 300px; left: 100px; } .ship_02:before, .ship_02:after { content: ""; width: 0; height: 0; border-top: 40px solid #ff5d; position: absolute; } .ship_02:before { border-left: 40px solid transparent; left: -40px; } .ship_02:after { border-right: 40px solid transparent; right: -40px; } .ship_03 { width: 0; height: 0; border-right: 90px solid transparent; border-bottom: 280px solid #ff5d; position: absolute; left: 300px; top: 20px; } .ship_03:before { content: ""; width: 0px; height: 0px; border-right: 90px solid transparent; border-bottom: 25px solid #0cc; position: absolute; top: 255px; } @keyframes boat { 0% { left: 0%; } 100% { left: 90%; } } @-webkit-keyframes boat { 0% { left: 0%; } 100% { left: 90%; } }

via:http://www.w2bc.com/article/57979

文档

基于css3小船水面游动动画特效_html/css

基于css3小船水面游动动画特效_html/css_WEB-ITnose:基于css3小船水面游动动画特效,这是一款色彩鲜艳扁平风格的css3动画特效。效果图如下: 在线预览 源码下载 实现的代码。 html代码: css代码: * { padding: 0; margin: 0; } body { position: relative; ba
推荐度:
标签: html 动画效果 css
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top