CSS水波纹特效

xml 复制代码
    <div class="mask">
        <div class="word">Loading...</div>
        <div class="word">Loading...</div>
    </div>
css 复制代码
    .mask {
        position: relative;
        height: 100vh;
        background-color: #000;
        .word {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 80px;
            &:nth-child(1) {
                color: transparent;
                -webkit-text-stroke: 2px #03a9f4;
            }
            &:nth-child(2) {
                color: #03a9f4;
                animation: water 2s ease-in-out infinite alternate;
            }
        }
    }
    @keyframes water {
        0% {
            clip-path: polygon(31% 61%, 53% 65%, 77% 67%, 100% 68%, 100% 100%, 0% 100%, 0% 35%, 13% 52%)
        }
        100% {
            clip-path: polygon(51% 68%, 71% 59%, 86% 44%, 100% 24%, 100% 100%, 0% 100%, 0% 72%, 28% 71%)
        }
    }
相关推荐
杜子不疼.5 小时前
【Linux】教你在 Linux 上搭建 Web 服务器,步骤清晰无门槛
linux·服务器·前端
程序员Agions6 小时前
useMemo、useCallback、React.memo,可能真的要删了
前端·react.js
滕青山6 小时前
Vue项目BMI计算器技术实现
前端·vue.js
子兮曰6 小时前
深入浏览器指纹:Canvas、WebGL、Audio是如何暴露你的身份的?
前端·浏览器·canvas
月亮补丁6 小时前
AntiGravity只能生成 1:1 图片?一招破解尺寸限制
前端
何中应6 小时前
MindMap部署
前端·node.js
NAGNIP6 小时前
程序员效率翻倍的快捷键大全!
前端·后端·程序员
一个网络学徒6 小时前
python5
java·服务器·前端
tiantian_cool6 小时前
Claude Opus 4.6 模型新特性(2026年2月5日发布)
前端
0思必得06 小时前
[Web自动化] Selenium获取元素的子元素
前端·爬虫·selenium·自动化·web自动化