![](https://csdnimg.cn/release/download_crawler_static/88371111/bg1.jpg)
html 爱心特效代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML><HEAD><TITLE> New Document
</TITLE><META NAME="Generator"
CONTENT="EditPlus"><META NAME="Author"
CONTENT=""><META NAME="Keywords" CONTENT=""><META
NAME="Description" CONTENT=""><style>html, body
{height: 100%;padding: 0;margin: 0;background:
#000;}canvas {position: absolute;width: 100%;height:
100%;}</style></HEAD>
<BODY><canvas id="pinkboard"></canvas><script>/**
Settings*/var settings = {particles: {length: 500,
// maximum amount of particlesduration: 2, //
particle duration in secvelocity: 100, // particle
velocity in pixels/seceffect: -0.75, // play with this
for a nice effectsize: 30, // particle size in
pixels},};
/** RequestAnimationFrame polyfill by Erik
Mö ller*/(function(){var b=0;var
c=["ms","moz","webkit","o"];for(var
a=0;a<c.length&&!window.requestAnimationFrame;++a){win
dow.requestAnimationFrame=window[c[a]+"RequestAnimatio
nFrame"];window.cancelAnimationFrame=window[c[a]+"Canc
elAnimationFrame"]||window[c[a]+"CancelRequestAnimatio
nFrame"]}if(!window.requestAnimationFrame){window.requ
estAnimationFrame=function(h,e){var d=new
Date().getTime();var f=Math.max(0,16-(d-b));var
g=window.setTimeout(function(){h(d+f)},f);b=d+f;return