文章目录
本文最后更新于 2024-12-13,已超过 365 天未更新,内容可能已失效。

教程:

复制下面的代码,图片链接替换成你的。最好PNG格式

 

ripro-v5美化教程

[wm_reply]

.post-item .media-img: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;
    padding-left: 10px
}

.post-item .media-img:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    background: url(https://oss.zptheme.com/wp-content/uploads/2024/12/1733416872-347b5037dff988f.gif);
    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;
}

.post-item .media-img:hover:before {
    background: rgba(0, 0, 0, .5)
}

.post-item .media-img:hover:after {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1
}

[/wm_reply]

子比主题教程

.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;
    padding-left: 10px
}

.item-thumbnail:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    background: url(https://oss.zptheme.com/wp-content/uploads/2024/12/1733416872-347b5037dff988f.gif);
    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
}

 

ripro-v2教程

[wm_reply]

.entry-media: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;
    padding-left: 10px
}

.entry-media:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    background: url(https://oss.zptheme.com/wp-content/uploads/2024/12/1733416872-347b5037dff988f.gif);
    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;
}

.entry-media:hover:before {
    background: rgba(0, 0, 0, .5)
}

.entry-media:hover:after {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1
}

[/wm_reply]

CC 许可协议
署名-非商业性使用-相同方式共享 4.0 国际 了解协议
文章链接:https://zptheme.com/series/7346.html
本文作者:子佩·来源:子佩工作室

除非注明,子佩工作室 文章均为原创,转载请以链接形式标明本文地址。

相关推荐

发表回复

登录后即可发表评论

社交账号登录

全部评论 (29)

/