- 资源介绍
- 更新记录
- 安装教程
RIPRO主题美化-登录注册框动态美化添加SVG登录特效(张嘴特效)
不带后台直接下载替换,带后台开关的按照下面教程走

1、找到/wp-content/themes/ripro/parts/popup-signup.php 文件并找到以下代码
<!–登录页大嘴SVG特效开始–>
<!–<?php if (_cao(‘xinghai_login_yazui’)) : ?> –>
<div class=”main-login”>
<div class=”monster”>
<div class=”monster__face”>
<div class=”monster__eyes”>
<div class=”monster__eye”></div>
<div class=”monster__eye”></div>
</div>
<div class=”monster__mouth”>
<div class=”monster__top”></div>
<div class=”monster__bottom”></div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<!–登录页大嘴SVG特效结束–>
2.后台控制开关代码,添加到你想要添加的后台开关位置
// 开启登录鸭嘴动效 array( 'id' => 'xinghai_login_yazui', 'type' => 'switcher', 'title' => '开启登录鸭嘴特效', 'default' => true, ), 3、找到diy.css把下面代码复制进去并保存
/*登录页大嘴SVG特效开始*/
.main-login {
display: flex;
justify-content: center;
align-items: flex-end;
position: relative;
margin-bottom: 100px;
margin-top: -105px;
}
.monster {
display: flex;
justify-content: center;
position: relative;
width: 270px;
height: 90px;
border-top-left-radius: 200px;
border-top-right-radius: 200px;
background-color: #FFF;
}
.monster__face {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: absolute;
top: 19%;
width: 75%;
height: 200px;
}
.monster__eyes {
display: flex;
justify-content: space-between;
width: 28%;
height: auto;
margin-bottom: 10px;
}
.monster__eye {
width: 17px;
height: 30px;
border-radius: 20px;
background: #000000;
}
.monster__mouth {
display: flex;
justify-content: center;
align-items: center;
position: relative;
width: 100%;
height: 0%;
overflow: hidden;
border: 25px solid #FFC333;
border-radius: 100px;
background-color: #810332;
animation: mouth 1.75s infinite;
}
.monster__mouth::before {
content: ”;
position: absolute;
width: 150px;
height: 80px;
border-radius: 100px;
background-color: #400018;
}
.monster__mouth::after {
content: ”;
position: absolute;
bottom: -80px;
width: 160px;
height: 80px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
background-color: #DC1B50;
animation: tongue 1.75s infinite;
}
.monster__top {
position: absolute;
top: -30px;
width: 170px;
height: 30px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
background-color: #ffffff;
z-index: 100;
animation: t 1.75s infinite;
}
.monster__bottom {
position: absolute;
bottom: 0;
width: 100px;
height: 30px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
background-color: #ffffff;
z-index: 100;
animation: b 1.75s infinite;
}
/**/
/**/
@keyframes t {
0%, 10%, 80%, 100% {
top: -30px;
}
20% {
top: 0px;
}
30% {
top: -20px;
}
40% {
top: -0px;
}
50% {
top: -25px;
}
70% {
top: 0px;
}
}
@keyframes b {
0%, 10%, 80%, 100% {
bottom: -30px;
}
20% {
bottom: 0px;
}
30% {
bottom: -20px;
}
40% {
bottom: -0px;
}
50% {
bottom: -25px;
}
70% {
bottom: 0px;
}
}
@keyframes mouth {
0%, 10%, 100% {
width: 100%;
height: 0%;
}
15% {
width: 90%;
height: 30%;
}
20% {
width: 50%;
height: 70%;
}
25% {
width: 70%;
height: 70%;
}
30% {
width: 80%;
height: 60%;
}
35% {
width: 60%;
height: 70%;
}
40% {
width: 55%;
height: 75%;
}
45% {
width: 50%;
height: 90%;
}
50% {
width: 40%;
height: 70%;
}
55% {
width: 70%;
height: 95%;
}
60% {
width: 40%;
height: 50%;
}
65% {
width: 100%;
height: 60%;
}
70% {
width: 100%;
height: 70%;
}
75% {
width: 90%;
height: 70%;
}
80% {
width: 50%;
height: 70%;
}
85% {
width: 90%;
height: 50%;
}
85% {
width: 40%;
height: 70%;
}
90% {
width: 90%;
height: 30%;
}
95% {
width: 100%;
height: 10%;
}
}
@keyframes tongue {
0%, 20%, 100% {
bottom: -80px;
}
30%, 90% {
bottom: -40px;
}
40% {
bottom: -45px;
}
50% {
bottom: -50px;
}
70% {
bottom: -80px;
}
90% {
bottom: -40px;
}
}
/*登录页大嘴SVG特效结束*/
猜你喜欢
-
WordPress插件:强大的数据库优化插件WP-Optimize
2021-04-24 -
迅雷下载限速怎么办?迅雷X 10.1.7.262正式版破解去广告本地SVIP资源分享
2021-04-25 -
Ripro主题优化-屏蔽视频另存为
2021-04-25 -
RIPRO修改-菜单增加角标
2021-04-24 -
小米MIUI解锁system系统分区&手机PC一键解锁system分区
2021-04-25 -
wp_verify_nonce()函数
2021-04-26 -
WordPress Win10 Explorer v1.3 主题
2021-04-21 -
WordPress如何在删除文章时自动删除文章内的图片附件
2021-04-25 -
RiPro主题文章标题美化代码教程
2021-04-24 -
wordpress在线问答插件 DW Question & Answer汉化版
2021-04-24
-
WordPress 5.5.1修复40+个问题,请尽快更新
2021-04-21 -
wp_get_attachment_image_src()函数
2021-04-26 -
WordPress获取本周/今日/24小时内更新的文章数量
2021-04-25 -
RiPro主题美化ripro-chlid子主题QQ&微信登录跳转邮箱资料补充强制绑定邮箱功能
2021-04-25 -
delete_option()函数
2021-04-26 -
抢占百度首页方法就是这么简单!
2021-04-24 -
视频去水印RemoveLogoNow4.0最新破解版
2021-04-25 -
WordPress如何调用指定ID文章
2021-04-24 -
WordPress 让后台用户列表可以根据文章数进行排序
2021-04-25 -
【Uigreat v1.5.1主题】 WordPress平扁设计风格文艺范儿简约视觉效果blog主题风格模版下载
2021-04-22
猜你在找
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
- 提示下载完但解压或打开不了?
- 找不到素材资源介绍文章里的示例图片?
- 大资源
- 2021-04-25Hi,初次和大家见面了,请多关照!

