爱心特效:本质是直接引入js文件即可

<script src="https://www.zanglikun.com/wp-content/uploads/js/left_point_love.js"></script>

原Js文件,使用方式将下面代码,作为js文件,上传到自己网站,然后在Wordpress的footer引入一下,即科获得左键爱心特效。

<script src="你的JS网络路径地址"></script>
(function(window,document,undefined)
{
	varhearts:[];
	windowrequestanimationframe:(function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback){ setTimeout(callback,1000/60);
}

)();
init();
function init()
{
	cssheartwidth:10px;
	height:10px;
	position:fixed;
	background:red;
	transform:rotate(45deg);
	-webkit-transform:rotate(45deg);
	-moz-transform:rotate(45deg);
}

.heart:after,.heart:before
{
	content:'';
	width:inherit;
	height:inherit;
	background:inherit;
	border-radius:50%;
	-webkit-border-radius:50%;
	-moz-border-radius:50%;
	position:absolute;
}

.heart:after
{
	top:-5px;
}

.heart:before
{
	left:-5px;
}
特殊说明:
上述文章均是作者实际操作后产出。烦请各位,请勿直接盗用!转载记得标注原文链接:www.zanglikun.com
第三方平台不会及时更新本文最新内容。如果发现本文资料不全,可访问本人的Java博客搜索:标题关键字。以获取全部资料 ❤