8

作者: 冰鈊夢 | 来源:发表于2019-06-05 08:52 被阅读0次

transition动画

<!DOCTYPE html>

<html lang="en">

  <meta charset="UTF-8">

  <title>transform

  <style type="text/css">

      .box{

width:200px;

        height:200px;

        background-color:gold;

        margin:50px auto 0;

        transition:all 1s ease;

      }

.box:hover{

transform:translate(50px,50px);

      }

.box2{

width:200px;

        height:200px;

        background-color:gold;

        margin:50px auto 0;

        transition:all 1s ease;

      }

.box2:hover{

transform:rotate(360deg);

      }

.box3{

width:200px;

        height:200px;

        background-color:gold;

        margin:50px auto 0;

        transition:all 1s ease;

      }

.box3:hover{

transform:scale(0.5,0.2);

      }

.box4{

width:200px;

        height:200px;

        background-color:gold;

        margin:50px auto 0;

        transition:all 1s ease;

      }

.box4:hover{

transform:skew(0deg,45deg);

      }

  <div class="box">

  <div class="box2">

  <div class="box3">

  <div class="box4">

</html>

laading动画

<!DOCTYPE html>

<html lang="en">

  <meta charset="UTF-8">

  <title>Document

  <style type="text/css">

      .box{

width:300px;

        height:125px;

        border:1px solid #000;

        margin:200px auto 0;

      }

.box p{

text-align:center;

        width:100%;

        float:left;

        margin:0;

        padding:0;

      }

.box div{

width:30px;

        height:70px;

        float:left;

        background-color:gold;

        margin:15px;

        border-radius:10px;

      }

.box div:nth-child(1){

background-color:red;

        animation:loading 500ms ease 0s infinite alternate;

      }

.box div:nth-child(2){

background-color:green;

        animation:loading 500ms ease 100ms infinite alternate;

      }

.box div:nth-child(3){

background-color:pink;

        animation:loading 500ms ease 200ms infinite alternate;

      }

.box div:nth-child(4){

background-color:greenyellow;

        animation:loading 500ms ease 300ms infinite alternate;

      }

.box div:nth-child(5){

background-color:cyan;

        animation:loading 500ms ease 400ms infinite alternate;

      }

@keyframes loading{

from{

transform:scaleY(1);

        }

to{

transform:scaleY(0.5);

        }

}

  <div class="box">

      <p>loading...

</html>

图片翻转

<!DOCTYPE html>

<html lang="en">

  <meta charset="UTF-8">

  <title>图片翻面

  <style type="text/css">

      .con{

width:300px;

        height:272px;

        margin:100px auto 0;

        position:relative;

        transform-style:preserve-3d;

        transform:perspective(800px)rotateY(0deg);

      }

.pic,.info{

width:300px;

        height:272px;

        position:absolute;

        left:0;

        top:0;

        backface-visibility:hidden;

        transform:perspective(800px)rotateY(0deg);

        transition:all 500ms ease;

      }

.info{

background-color:gold;

        text-align:center;

        line-height:272px;

        transform:translateZ(2px)rotateY(180deg);

      }

.con:hover .pic{

transform:perspective(800px)rotateY(180deg);

      }

.con:hover .info{

transform:perspective(800px)rotateY(0deg);

      }

  <div class="con">

      <div class="pic"><img src="images/location_bg.jpg">

      <div class="info">图片文字说明

</html>

相关文章

  • 8-8-8

    发-发-发 今天比较闲,备忘录看了一遍又一遍,发现没有什么具体的工作非得马上完成。 又不想看微博浪费时间,想来想去...

  • 8、8

    山重水复疑无路,柳暗花明又一村。人生有万千种可能,但是真的有一种成功,叫坚持到底!

  • 8/8

    今天有人问我,你的脾气一直都是这么好的吗?还是说你也看人的? 我笑笑说,你觉得呢? 虽然表面上,我波澜不惊,可我的...

  • 35年静脉曲张老烂腿案例

    【35年静脉曲张老烂腿案例】 1/8 2/8 3/8 4/8 5/8 6/8 7/8 8/8

  • 寒假计划安排表

    8:00 起床 8:00~8:10 洗漱 8:10~8:40 吃早饭 8:50~9:...

  • 作息时间表(家)

    上午 8:00起床 8:00~8:20洗漱,吃早饭 8:20~8:30看视频 8:30~8:50背单词 8:50~...

  • 2021-01-07

    脑洞大开智力PK 蓝白领(辑) 之一 5 1 5 5=24 8 8 8 8 8 8 8 8 =1000 在数字与数...

  • 24=8+8+8

    当表盘里的时针转了一圈以后,崭新的一天已经开始。实际上,每个人得生活方式是大相径庭的,8小时睡觉,8小时工作,每天...

  • 假期计划

    醒来 : 8:00 记单词: 8:00~8:30(半小时) 起床 : 8:30 洗漱 : 8:30~8:50 (二...

  • 2019-5-8晨间日记

    8:15-8:25 收拾厨房 8:25-8:30 铺床 8:30-8:35 收拾杂物 8:35-8:40 卫生间台...

网友评论

      本文标题:8

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