zoukankan      html  css  js  c++  java
  • transition学习笔记~~

    一.属性详解

    1. transition:允许css属性值在一定的时间区内平滑过渡:
    • transition-property:规定应用过渡的css属性名称,默认为all;多个属性用“,”隔开
    • transition-duration:过渡时间,默认为0;
    • transition-timing-function: 时间曲线,默认为ease;
    • transition-delay:过渡效果何时开始。

          2.简写

             例如:a{all 0.5s ease-in 1s;}

          3.timing-function:

             ease  逐渐变慢

             linear  匀速

             ease-in  加速

             ease-out  减速

             ease-in-out 先加速再减速

             cubic-bezier 自定义

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>test</title>
        <style>
            div {
                width: 200px;
                height: 200px;
                overflow: hidden;
                text-align: center;
                border: 5px solid black;
            }
            div img{
                width: 100%;
                height: 100%;
                vertical-align: middle;
                -webkit-transition: all 0.8s linear;
                -moz-transition: all 0.8s linear;
                -ms-transition: all 0.8s linear;
                -o-transition: all 0.8s linear;
                transition: all 0.8s linear;
            }
            div img:hover{
                width: 250px;
                height: 250px;
    
            }
        </style>
    </head>
    <body>
    
    <div>
        <img src="images/img_19.png" alt="">
    </div>
    </body>
    </html>
  • 相关阅读:
    spring boot 启动类 添加组件
    spirng boot 添加过滤器
    spring cloud spring-hystrix 缓存
    spring cloud spring-hystrix
    spring cloud spirng整合feign
    spring cloud feign
    cxf-client
    spring cloud客户端启用负载均衡
    spring cloud 负载均衡自定义
    VS2013 配置pthread
  • 原文地址:https://www.cnblogs.com/17shiooo/p/5027296.html
Copyright © 2011-2022 走看看