• 视觉设计应用


    1.

       text-align: justify;   // 段落两端对齐

      transform: scale(0.5);  // 放大/缩小倍数
      opacity: 0.5;   // 透明度

      animation-timing-function: linear;  //  匀速运动

      animation-timing-function: ease-out;  //  先快后慢

      animation-timing-function: ease-in;   //   先慢后快

      ursor:pointer;  //  鼠标变手状

      transition:all 1.5s;   //  时间

    2. 使用CSS animation更改按钮的悬停状态

    <button>Register</button>

    css:

    button {
        border-radius: 5px;
        color: white;
        background-color: #0F5897;
        padding: 5px 10px 8px 10px;

      background: linear-gradient(35deg,#ccffff,#ffcccc); // 背景渐变
      animation-iteration-count: infinite; // 动画连续运行
      animation-iteration-count: 3; // 动画运行 3 次
    }
    button:hover {
        animation-name: background-color;  // name 
        animation-duration: 2000ms;   // 过程持续 2 秒
      animation-fill-mode:forwards; // 鼠标移上去突出效果 } @keyframes background-color{ // name 100%{ background-color: #4791d0; } }
    @keyframes rainbow {
        0% {
            background-color: blue;
            top: 0px;
            left:0px;
        }
        50% {
            background-color: green;
            top: 50px;
            left:25px;
        }
        100% {
            background-color: yellow;
            top: 0px;
            left:-25px;
        }
    }            
  • 相关阅读:
    使用JQuery快速高效制作网页特效1章
    优化数据库设计
    sql语句
    java九章后的总结笔记
    C#总结
    数组。
    2018_学习资料备用
    03-11gR2单机通过RMAN恢复到RAC(未验证)
    02-oracle11g rac RMAN备份恢复至单机(未验证)
    01-spfile和pfile的区别,生成,加载和修复
  • 原文地址:https://www.cnblogs.com/jy13638593346/p/9235194.html
Copyright © 2020-2023  润新知