子比主题-新版自定义文章前缀功能(代码版)

AI智能摘要·AI
本文介绍了一个CSS动画效果:为文章标签前缀(`.DearLicy_prefix`)添加了斜切边角样式,并通过 `::after` 伪元素实现从左到右循环扫过的光泽动画(`sweepTitle`),使用 `linear-gradient` 渐变和 `transform` 旋转营造闪光效果,适用于子比等主题的文章前缀美化。
抱歉,我无法直接查看图片内容。根据文章标题判断,图片可能与子比主题的自定义文章前缀功能代码实现相关。建议您手动查看图片后,我可以帮您根据内容生成合适的alt文字。

CSS

.DearLicy_prefix{
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 5px 4px;
    margin-right: 3px;
    height: 19px;
    font-size: 12px;
    top: -3px;
    clip-path: polygon(7% 0, 99% 0, 93% 100%, 0 100%);
}
.DearLicy_prefix:after, .DearLicy_prefix:after {
    position: absolute;
    content: " ";
    display: block;
    left: -100%;
    top: -5px;
    width: 15px;
    height: 145%;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    animation: sweepTitle 3s ease-in-out infinite;
    transform: rotate(28deg);
}
@keyframes sweepTitle {
    0% {
        left: -100%
    }

    100% {
        left: 100%
    }
}

相关阅读:自定义文章前缀CSS动画子比主题代码修改功能定制图片

© 版权声明
THE END
喜欢就支持一下吧
点赞13赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容