• css液体填充动画效果


    <!DOCTYPE html> 

    <html lang="en"> 

    <head> 

        <meta charset="UTF-8" /> 

        <meta name="viewport" content= 

            "width=device-width, initial-scale=1.0" /> 

        <title> 

           用HTML和CSS在文本上如何创建液体填充动画效果? 

        </title> 

        <style> 

            body { 

                margin: 0; 

                padding: 0; 

            } 

            h1 { 

                margin: 200px 0; 

                padding: 0; 

                font-size: 80px; 

                position: relative; 

                color:green; 

            } 

            h1:before { 

                content: "WEB前端学习"; 

                position: absolute; 

                top: 0; 

                left: 0; 

                100%; 

                height: 100%; 

                color:white; 

                overflow: hidden; 

                animation: animate 6s infinite; 

            } 

            @keyframes animate { 

                0% { 

                height: 25%; 

                } 

                25% { 

                height: 50%; 

                } 

                50% { 

                height: 65%; 

                } 

                75% { 

                height: 40%; 

                } 

                100% { 

                height: 25%; 

                } 

            } 

    </style> 

    </head> 

    <body> 

        <center> 

            <h1>WEB前端学习</h1> 

        </center> 

    </body> 

    </html>

  • 相关阅读:
    Spark性能优化指南——基础篇
    spark精华面试题
    JVM性能调优总结
    Eclipse安装Hadoop插件配置Hadoop开发环境
    CPU高的解决方法
    Flume源码分析--转载
    Flume-ng的原理和使用--转载
    spark内核源码深度剖析(2)--Spark的三种提交模式
    java调用so文件
    爬取网页数据基础
  • 原文地址:https://www.cnblogs.com/weixin2623670713/p/13562457.html
Copyright © 2020-2023  润新知