作者是如何在文字中做出均衡器效果的?
如果您将鼠标悬停在此处的文本导航词上页面,您会看到它在文本内从左到右改变颜色。我不明白这个人是怎么做到的,甚至不知道他使用了什么技术来做到这一点。
他是用画布来做的吗?有谁知道这个效果是怎么做出来的吗?文本不是图像,而是可选择的文本。
If you hover over the textual navigation words on this page, you'll see it changes color from left to right, inside the text. I can't figure out how this guy did that, or even what technology he used to do it.
Is he using canvas to do it? Does anyone know how he did this effect? The text isn't an image, it's selectable text.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它是 javascript 和 jquery:
本质上只是 2 个具有相同文本但两种不同颜色的 div。当鼠标悬停在上方时,橙色的动画会覆盖白色的动画。
It's javascript with jquery:
Essentially just 2 divs with the same text but two different colors. When moused over, the orange one is animated to cover over the white one.
他使用 jQuery 来实现这种效果。具体来说:
和:
He's using jQuery to make that effect. Specifically:
and: