mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
111 字
1 分钟
文字版的波浪效果
2024-04-01

简单的实现需求 https://codepen.io/Chokcoco/pen/jOwEqvR

<div class="g-container">
<p>TEXT WAVE</p>
</div>

css#

html, body {
width: 100%;
height: 100%;
display: flex;
}
.g-container {
margin: auto;
}
p {
position: relative;
font-size: 120px;
font-weight: bold;
background: #fff;
color: #000;
overflow: hidden;
&::before,
&::after {
content: "";
position: absolute;
top: -923px;
left: 50%;
width: 2000px;
height: 2000px;
border-radius: 45% 48% 43% 47%;
transform: translate(-50%, -50%);
background: rgba(3, 169, 244, .85);
animation: rotate 10s infinite linear;
z-index: 1;
mix-blend-mode: lighten;
}
&::after {
border-radius: 43% 47% 44% 48%;
animation: rotate 10s infinite .5s linear;
}
}
@keyframes rotate {
0% {
transform: translate(-50%, -50%) rotate(0);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}

image.png

分享

如果这篇文章对你有帮助,欢迎分享给更多人!

文字版的波浪效果
https://misty-rain.cn/posts/文字版的波浪效果/
作者
MistyRain
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

封面
风雨
怪啊姨 / BOBO Chicken
封面
风雨
怪啊姨 / BOBO Chicken
0:00 / 0:00