#最新
子比主题美化 给子比文章缩略图添加优雅的动态圆圈

2023-11-28 0 747

将下方css代码粘贴到子比主题设置->自定义代码->自定义css代码保存即可。

素材(直接另存为):子比主题美化 给子比文章缩略图添加优雅的动态圆圈

/*动态圆圈 开始*/
.item-thumbnail:before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0,0,0,0);
                transition: background .35s;
                border-radius: 8px;
                z-index: 2;
                max-width: 765px;
                margin: 0 auto;
                pointer-events: none;
            }
            .item-thumbnail:after {
                content: '';
                position: absolute;
                top: 50%;
                left: 50%;
                width: 50px;
                height: 50px;
                margin: -25px 0 0 -25px;
                background: url(//001.pipixiaozhan.cn/images/comimages.png);
                background-repeat: no-repeat;
                background-size: 100% 100%;
                z-index: 3;
                -webkit-transform: scale(2);
                transform: scale(2);
                transition: opacity .35s,-webkit-transform .35s;
                transition: transform .35s,opacity .35s;
                transition: transform .35s,opacity .35s,-webkit-transform .35s;
                opacity: 0;
                pointer-events: none;
            }
            .item-thumbnail:hover:before {
                background: rgba(0,0,0,.5)
            }
            .item-thumbnail:hover:after {
                -webkit-transform: scale(1);
                transform: scale(1);
                opacity: 1
            }
/*文章缩略图的动态圆圈 结束*/

 

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

静鱼客栈 学习中心 子比主题美化 给子比文章缩略图添加优雅的动态圆圈 https://wp.muooy.cn/25476.html

静鱼客栈的帅逼站长~

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务