Html
    Css
    Js

    
                        
.heart-eye {
	position:absolute;
	animation:pulse 1s ease-out infinite;
}
.heart {
	display:block;
	width:16px;
	height:16px;
	background:#e25d5d;
	transform:rotate(-45deg);
}
.heart:before,.heart:after {
	content:"";
	position:absolute;
	width:16px;
	height:16px;
	border-radius:50%;
	background-color:#e25d5d;
}
.heart:before {
	top:-8px;
	left:0;
}
.heart:after {
	left:8px;
	top:0;
}
@keyframes pulse {
	30% {
	transform:scale(1.2,1.2);
}
70% {
	transform:scale(1,1);
}
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

js爱心鼠标跟随

更新时间:2020-04-16 09:13:40

0