前端

作者: 周肸 | 来源:发表于2018-11-29 09:02 被阅读0次

1.过渡动画

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>过渡动画</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 300px;
            height: 500px;
            background-color: #135;
            margin: 50px auto;
        }
        .box:hover{
            width: 500px;
            height: 300px;
            margin: 50px auto;
            background-color: #909090;
        }

    </style>
</head>
<body>
    <div class="box">
        <input type="text" name="输入" id="dasd">
    </div>
</body>
</html>

2.动画

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动图</title>
    <style type="text/css">
        *{
        margin:0;
        padding:0;
    }   
    .box{
        width: 500px;
        height: 200px;
        border: 1px solid black;
        margin: 100px auto;
    }
    .box1{
        width: 40px;
        height: 80px;
        background:red;
        float: left;
        margin:50px 0 0 50px;
        border-radius: 10px;
        animation: moving 500ms ease 0ms infinite alternate both;
    }
    .box2{
        width: 40px;
        height: 80px;
        background: purple;
        float: left;
        margin:50px 0 0 50px;
        /*margin-top: 50px;
        margin-left: 50px;*/
        border-radius: 10px;
        animation: moving 500ms ease 100ms infinite alternate both;
    }
    .box3{
        width: 40px;
        height: 80px;
        background: green;
        float: left;
        margin:50px 0 0 50px;
        /*margin-top: 50px;
        margin-left: 50px;*/
        border-radius: 10px;
        animation: moving 500ms ease 200ms infinite alternate both;
    }
    .box4{
        width: 40px;
        height: 80px;
        background: yellow;
        float: left;
        margin:50px 0 0 50px;
        /*margin-top: 50px;
        margin-left: 50px;*/
        border-radius: 10px;
        animation: moving 500ms ease 300ms infinite alternate both;
    }
    .box5{
        width: 40px;
        height: 80px;
        background: pink;
        float: left;
        margin:50px 0 0 50px;
        /*margin-top: 50px;
        margin-left: 50px;*/
        border-radius: 10px;
        animation: moving 500ms ease 400ms infinite alternate both;
    }
    @keyframes moving{
        from{
            transform: scaleY(1);
        }
        to{
            transform: scaleY(0.5);
        }
    }
    .box6{
        width: 100px;
        height: 21px;
        background-color: #FFFFFF;
        float: left;
        margin:10px 0 0 200px;
    }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
        <div class="box4"></div>
        <div class="box5"></div>
        <div class="box6"><p>loading...</p></div>
    </div>
</body>
</html>

相关文章

  • 前端文章系列

    【前端】从0.1开始,创建第一个项目 【前端】初识HTML 【前端】HTML标签 【前端】HTML属性 【前端】C...

  • Web前端小白入门指迷

    大前端之旅 大前端有很多种,Shell 前端,客户端前端,App 前端,Web 前端和可能接下来很会火起来的 VR...

  • 推荐几个好的前端博客和网站

    前端开发博客前端开发博客-前端开发,前端博客 对前端知识结构的理解人类身份验证 - SegmentFault 脚本...

  • 2020-04-11

    前端工程化相关 前端动画相关 优化前端性能

  • Web前端

    Web前端 web前端是什么- 定义 职责 web前端基础知识和学习路线 web前端学习的资源 1.Web前端是...

  • 2018-05-16

    web前端开发 什么是web前端 web前端开发也戏称“web前端开发攻城狮”,目前这个职位也叫“大前端”。这个职...

  • 前端学习:一个好的前端导航可以更好的学习前端

    前端导航: 前端网课(前端的网络课程,在线网站) 前端资源(有论坛等交流平台) 前端手册(html手册,css手册...

  • 2018-09-25

    前端学习 前端技术一般分为前端设计和前端开发,前端设计一般可以理解为网站的视觉设计,前端开发则是网站的前台代码实现...

  • 浏览收藏文章列表

    前端 frameset frame前端框架支持ie8选择前端框架选择2前端框架选择weexframeset,fra...

  • 无标题文章

    #Web前端 - web前端是什么 - 定义 - 职责 - web前端基础知识和学习路线 - web前端学习的...

网友评论

      本文标题:前端

      本文链接:https://www.haomeiwen.com/subject/pphxcqtx.html