0
点赞
收藏
分享

微信扫一扫

【CSS】文字毛玻璃效果(简单版)



用文本阴影和字体透明颜色可以做出毛玻璃的效果。

<div>毛玻璃</div>

<style>
  div {
    color: rgba(0, 0, 0, 0);
    text-shadow: 0 0 10px #000;
    cursor: default;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  div:hover {
    color: rgba(0, 0, 0, 1);
    text-shadow: none;
  }
</style>
举报

相关推荐

0 条评论