zoukankan      html  css  js  c++  java
  • translate 动画不同时间飞入文字


    代码:
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
    body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select,figure,figcaption{margin:0;padding:0}
    body{font:14px"微软雅黑","Arial Narrow",HELVETICA;}
    figure{
    float: left;
    33%;
    overflow: hidden;
    position: relative;
    background: #2f0000;
    }
    figure img{
    height: 400px;
    /* 100%;*/
    opacity: 0.9;
    transition: all 0.35s;
    }
    figcaption{
    position: absolute;
    left: 0;
    top: 0;
    }
    figcaption h3{
    color: #ffffff;
    }
    figcaption p{
    background:#ffffff;
    color: #000000;
    margin: 3px 3px 3px 3px;
    font-size: 13px;
    text-align: center;
    130px;
    height: 20px;
    line-height: 20px;
    transition: all 0.35s;
    transform: translate(-135px,0);
    }
    figcaption p:nth-of-type(1){
    transition-delay: 0.05s;
    }
    figcaption p:nth-of-type(2){
    transition-delay: 0.10s;
    }
    figcaption p:nth-of-type(3){
    transition-delay: 0.15s;
    }
    figure:hover figcaption p{
    transform: translate(0,0);
    }
    figure:hover img{
    transform: translate(-50px,0);
    opacity: 0.6;
    }
    @media screen and (max- 1000px){
    figure{ 50%}
    }
    @media screen and (max- 600px){
    figure{ 100%}
    }
    </style>
    </head>
    <body>
    <figure>
    <img src="image/002.jpg">
    <figcaption>
    <h3>标题标题</h3>
    <p>文字文字文字文字</p>
    <p>文字文字文字文字</p>
    <p>文字文字文字文字</p>
    </figcaption>
    </figure>
    <figure>
    <img src="image/002.jpg">
    <figcaption>
    <h3>标题标题</h3>
    <p>文字文字文字文字</p>
    </figcaption>
    </figure>
    <figure>
    <img src="image/003.jpg">
    <figcaption>
    <h3>标题标题</h3>
    <p>文字文字文字文字</p>
    </figcaption>
    </figure>
    </body>
    </html>
  • 相关阅读:
    EOJ 2743 Stock Exchange
    POJ-3468 A Simple Problem with Integers
    EOJ-1104 bitmap
    【转】旋转卡壳——凸多边形间对踵点对(定义)
    Ring 3层枚举进程的四种方法
    XX-Net项目,免费浏览谷歌的伟大项目
    浅析Java中的内存机制
    Ubuntu下eclipse中安装Scala插件
    注入(5)---导入表注入(HookINT)
    Linux下MySQL导入文件出错ERROR 1290 (HY000)
  • 原文地址:https://www.cnblogs.com/yuanyuan-1994/p/8710678.html
Copyright © 2011-2022 走看看