动画

作者: 浮华_e823 | 来源:发表于2018-12-04 09:32 被阅读0次

过渡动画transition属性简介

transition是网页上的变化的逐渐过渡效果

例:transition: property duration timing-function delay;
  • border-radius:圆角

  • transition:产生动画

  • transition:all ... ease所有一起变

  • liner:匀速

  • ease-in:开始是慢速

  • ease-out:结束时慢速

  • scale:缩放

  • perspective:透视距离

  • transform:交换 skew:斜切

 <!DOCTYPE html>
 <html lang="en">
 <head>
<meta charset="UTF-8">
<title>loading</title>
<style type="text/css">
    .box{
        width:300px;
        height:125px;
        border:1px solid #000;
        margin:200px auto 0;
    }
    .box p{
        text-align: center;
        padding-top: 89px;
        float: top;
    }
    .box1{
        width:30px;
        height:70px;
        margin:15px;
        background-color:rgb(255,0,0);
        border-radius:10px;
        animation: loading 0.5s ease 100ms infinite alternate;
        float: left;
    }
    .box2{
        width:30px;
        height:70px;
        margin:15px;
        background-color: rgb(0,219,0);
        border-radius:10px;
        animation: loading 0.5s ease 200ms infinite alternate;
        float: left;
    }
    .box3{
        width:30px;
        height:70px;
        margin:15px;
        background-color: rgb(255,193,203);
        border-radius:10px;
        animation: loading 0.5s ease 300ms infinite alternate;
        float: left;
    }
    .box4{
        width:30px;
        height:70px;
        margin:15px;
        background-color: rgb(173,255,46);
        border-radius:10px;
        animation: loading 0.5s ease 400ms infinite alternate;
        float: left;
    }
    .box5{
        width:30px;
        height:70px;
        margin:15px;
        background-color: rgb(0,255,255);
        border-radius:10px;
        animation: loading 0.5s ease 500ms infinite alternate;
        float: left;
    }
    @keyframes loading{
        from{
            transform: scaleY(1);
        }
        to{
            transform: scaleY(0.5);
        }
    }
</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>
    <p>loading....</p>
</div>
</body>
</html>

相关文章

  • Android回顾--(十六) 动画简析

    动画: 补间动画(Tween动画) 帧动画(Frame动画) 属性动画(Property动画) 补间动画 特点: ...

  • 在山西太原,做个二维动画需要哪些制作流程?

    二维动画有哪些类型? flash动画,课件动画,mg动画,ae动画,GIF动画,手绘动画,网页动画,企业动画,宣传...

  • Android 动画

    【Android 动画】 动画分类补间动画(Tween动画)帧动画(Frame 动画)属性动画(Property ...

  • 动画学习

    动画 分为 组动画,属性动画,渐变动画,其中属性动画包括 普通动画和关键帧动画,其他动弹动画,动画层分为 pres...

  • Android动画

    Android动画分类: 视图动画:补间动画、逐帧动画 属性动画 视图动画 补间动画 可以在xml中定义动画,然后...

  • iOS动画

    iOS动画-从UIView动画说起iOS动画-Transform和KeyFrame动画iOS动画-layout动画...

  • Android动画之视图动画

    分类 Android动画主要包括视图动画和属性动画。视图动画包括Tween动画和Frame动画。Tween动画又包...

  • Android 动画

    android动画分为三种 帧动画,视图动画(补间动画),属性动画逐帧动画 视图动画 属性动画 Window和A...

  • android动画

    动画: 分类:分为视图动画和属性动画,其中视图动画又分为补间动画和逐帧动画。补间动画又分为平移动画、缩放动画、旋转...

  • Android中的动画概述

    动画可以分为三类:View动画,帧动画,属性动画。 一、View动画 1.View动画包括四种:平移动画,缩放动画...

网友评论

      本文标题:动画

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