基于css3小船水面游动动画特效_html/css_WEB-ITnose

php中文网
发布: 2016-06-24 11:38:02
原创
2199人浏览过

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

在线预览    源码下载

实现的代码。

html代码:

千面视频动捕
千面视频动捕

千面视频动捕是一个AI视频动捕解决方案,专注于将视频中的人体关节二维信息转化为三维模型动作。

千面视频动捕 27
查看详情 千面视频动捕

立即学习前端免费学习笔记(深入)”;

<div class="land">       <div class="land_01"></div>       <div class="land_02"></div>       <div class="land_03"></div>       <div class="land_04"></div>   </div>    <div class="ship">       <div class="ship_01"></div>       <div class="ship_02"></div>       <div class="ship_03"></div>   </div>
登录后复制

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 #ff5d89;            position: absolute;            left: 140px;        }             .ship_01:before {                content: "";                width: 0px;                height: 0px;                border-left: 80px solid transparent;                border-bottom: 180px solid #FF5D89;                position: absolute;                left: -275px;                top: 120px;            }         .ship_02 {            width: 250px;            height: 40px;            background: #ff5d89;            position: absolute;            top: 300px;            left: 100px;        }             .ship_02:before, .ship_02:after {                content: "";                width: 0;                height: 0;                border-top: 40px solid #ff5d89;                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 #ff5d89;            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

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号