侧边栏壁纸
博主头像
前端学习

行动起来,活在当下

  • 累计撰写 307 篇文章
  • 累计创建 18 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

halo文章图片赖加载渐变模糊过度动画样式

Administrator
2023-09-25 / 0 评论 / 0 点赞 / 54 阅读 / 0 字

/opt/1panel/apps/halo/halo/data/themes/theme-hao/templates/assets/zhheo/zhheoblog.css

#recent-posts > .recent-post-item .post_cover img.entered {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: opacity 1s;
    will-change: transform; /* 添加性能优化 */
    animation: blur-to-clear 2s cubic-bezier(0.62, 0.21, 0.25, 1) 0s 1 normal
        backwards running,
    scale 1.5s cubic-bezier(0.62, 0.21, 0.25, 1) 0s 1 both;
}
@keyframes blur-to-clear {
    0% {
        filter: blur(50px);
        opacity: 1;
    }

    100% {
        filter: blur(0);
        opacity: 1;
    }
}

0

评论区