RiProV2美化-樱花特效

功能介绍

推荐喜欢二次元/做动漫/漫画相关站点的站长集成该功能,启用后会有全屏樱花飘落,非常的唯美好看!

配置教程

首先利用宝塔或则FTP打开/inc/options下的admin-options.php文件把下面代码放在20行左右

array(
'id' => 'is_cherry',
'type' => 'switcher',
'title' => '樱花特效',
'label' => '启用后全站会飘落樱花',
'default' => false,
),

最后在主题根目录下打开functions.php将以下代码放在最后即可

//+----------------------------------------------------------------------
//| 樱花特效
//+----------------------------------------------------------------------
if (_cao('is_cherry')) {
add_action('wp_footer', function () {
echo <<<EOT
<script type="text/javascript" src="https://van.ygit.net/wp-content/themes/van/assets/js/beautify/snowfall.js"></script>
<div class="meiha"></div>
<style>
.meiha {
position: fixed;
top: 0;
right: 0;
z-index: 999;
width: 350px;
height: 231px;
pointer-events: none;
}

.snowfall-flakes {
pointer-events: none;
animation: sakura 1s linear 0s infinite;
}

.snowfall-flakes {
animation: sakura 1s linear 0s infinite;
}

.night .snowfall-flakes {
background: transparent !important;
}

@keyframes sakura {
0% {
transform: rotate3d(0, 0, 0, 0deg);
}

25% {
transform: rotate3d(1, 1, 0, 60deg);
}

50% {
transform: rotate3d(1, 1, 0, 0deg);
}

75% {
transform: rotate3d(1, 0, 0, 60deg);
}

100% {
transform: rotate3d(1, 0, 0, 0deg);
}
}
</style>
EOT;
}, 100);
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
日主题系列

RiProV2美化-文字输入特效

2022-10-23 16:12:41

日主题系列

RiProV2美化-鼠标指针美化

2022-10-23 16:19:53

11 条回复 A文章作者 M管理员
  1. Somebody essentially help to make significantly articles I’d state. This is the first time I frequented your web page and up to now? I surprised with the research you made to make this actual post incredible. Fantastic job!

  2. Hi, i think that i saw you visited my web site thus i came to ?eturn the favor텶’m attempting to find things to enhance my site!I suppose its ok to use a few of your ideas!!

  3. My brother recommended I might like this web site. He was totally right. This post actually made my day. You cann’t imagine just how much time I had spent for this information! Thanks!

  4. obviously like your web-site but you need to test the spelling on quite a few of your posts. Several of them are rife with spelling problems and I to find it very troublesome to inform the reality on the other hand I’ll certainly come back again.

  5. Hi my loved one! I wish to say that this post is amazing, nice written and include approximately all vital infos. I’d like to peer more posts like this.

  6. Just wish to say your article is as surprising. The clearness in your post is just cool and i could assume you’re an expert on this subject. Fine with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please keep up the enjoyable work.

  7. Excellent blog here! Also your website loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol

  8. Nice blog here! Also your site loads up very fast! What host are you using? Can I get your affiliate link to your host? I wish my site loaded up as quickly as yours lol

  9. I just could not leave your web site before suggesting that I really enjoyed the standard information a person supply to your visitors? Is gonna be again steadily in order to check up on new posts.

  10. My brother suggested I might like this blog. He was totally right. This post actually made my day. You can not imagine simply how much time I had spent for this info! Thanks!

  11. I simply could not go away your web site prior to suggesting that I really enjoyed the standard info a person supply on your guests? Is going to be back incessantly to investigate cross-check new posts.

个人中心
今日签到
有新私信 私信列表
搜索
赣ICP备2021010644号-1