区块链交易网站开发,wordpress ios 源码,建站之星模板下载网站,梅陇做网站htmlcssjs实现生日快乐代码#x1f382;超炫酷效果#x1f382;(含生日背景音乐)❤520/表白/七夕情人节/求婚❤专用炫酷动画网页的源代码 程序员爱情❤520/表白/七夕情人节/求婚❤专用html5css3js 生日快乐网站模板 HTML生日快乐祝福网页模板#xff0c;该模板有多种动态效果…htmlcssjs实现生日快乐代码超炫酷效果(含生日背景音乐)❤520/表白/七夕情人节/求婚❤专用炫酷动画网页的源代码 程序员爱情❤520/表白/七夕情人节/求婚❤专用html5css3js 生日快乐网站模板 HTML生日快乐祝福网页模板该模板有多种动态效果图全局采用蓝色装饰适用于给女朋友的生日祝福只需简单修改即可用网页生成打开。htmlcssjs实现生日快乐代码超炫酷效果(含生日背景音乐)❤520/表白/七夕情人节/求婚❤专用炫酷动画网页的源代码 戳下方链接↓查看线上演示地址
1.生日快乐(多页面html模板)★在线演示地址:https://ruanjiafeng2013.gitee.io/happy-birthday-template
2.生日蛋糕★在线演示地址:https://ruanjiafeng2013.gitee.io/birthday-cake
3.(生日快乐)蛋糕烟花蓝色梦幻海洋3D相册★在线演示地址: https://ruanjiafeng2013.gitee.io/birthday-cake520/
动态效果演示 HTML5庆祝生日蛋糕烟花特效 html代码
!DOCTYPE html
html langenheadmeta charsetUTF-8title制作一个程序员的生日快乐代码/titlemeta nameviewport contentwidthdevice-width, initial-scale1link relstylesheet hrefcss/style.csslink relstylesheet hrefcss/style11.csslink relstylesheet hrefcss/yanhua.csslink relstylesheet hrefcss/style2D.css
/headbodymarquee styleposition: fixed; top: 10px; color: #fff scrollamount10Happy birthday! 生日快乐/marqueemarquee styleposition: fixed; top: 20px; color: #ffd800 scrollamount3祝你生日快乐天天开心/marqueemarquee styleposition: fixed; top: 50px; color: #00ff90 scrollamount5祝你生日快乐没有烦恼/marqueemarquee styleposition: fixed; top: 50px; color: #00ff90 scrollamount5祝你生日快乐没有烦恼/marqueemarquee styleposition: fixed; top: 50px; color: #00ff90 scrollamount5祝你生日快乐没有烦恼/marqueemarquee styleposition: fixed; top: 50px; color: #00ff90 scrollamount5祝你生日快乐没有烦恼/marqueemarquee styleposition: fixed; top: 50px; color: #00ff90 scrollamount5祝你生日快乐没有烦恼/marqueemarquee styleposition: fixed; top: 50px; color: #00ff90 scrollamount5祝你生日快乐没有烦恼/marqueemain styletext-align:center;position:absolute;ul classstar style--v: 1; --t: 1;li style--i: 0/li/ulul style--v: 2; --t: 8; --direction:reverseli style--i: 0/lili style--i: 1/lili style--i: 2/lili style--i: 3/lili style--i: 4/lili style--i: 5/lili style--i: 6/lili style--i: 7/li/ulul style--v: 3; --t: 12li style--i: 0/lili style--i: 1/lili style--i: 2/lili style--i: 3/lili style--i: 4/lili style--i: 5/lili style--i: 6/lili style--i: 7/lili style--i: 8/lili style--i: 9/lili style--i: 10/lili style--i: 11/li/ulul style--v: 4; --t: 18; --direction:reverseli style--i: 0/lili style--i: 1/lili style--i: 2/lili style--i: 3/lili style--i: 4/lili style--i: 5/lili style--i: 6/lili style--i: 7/lili style--i: 8/lili style--i: 9/lili style--i: 10/lili style--i: 11/lili style--i: 12/lili style--i: 13/lili style--i: 14/lili style--i: 15/lili style--i: 16/lili style--i: 17/li/ul/ulp idmessage styleposition:relative;margin-top:-40px;z-index:99999img srcimg/birthday.png altAlternate Text /br //p/main div classblock-audio stylez-index:10000;/divcanvas idcanvas/canvasscript typetext/javascript srcjs/jquery.min.js/scriptscript typetext/javascript srcjs/index1.js/scriptscript srcjs/script.js/script/body/html
js代码
console.clear();/* Play with these values! */
const PARTICLE_COUNT 100;
const SAFE_DISTANCE 130;
const INFECTED_DISTANCE 15;
const INFECTION_RATE 0.25;
const RECOVERY_TIME 14000;
const STAY_AT_HOME 0.1;/* ---------------------------------- */let particles [];const STATUSES {HEALTHY: HEALTHY,INFECTED: INFECTED,RECOVERED: RECOVERED
};const elBody document.body;
const elCanvas document.querySelector(#canvas);
const ctx elCanvas.getContext(2d);let width, height;function resize() {width elCanvas.width elBody.clientWidth;height elCanvas.height elBody.clientHeight;
}
resize();
window.addEventListener(resize, resize);/* ---------------------------------- */class Particle {constructor() {this.x Math.random() * width;this.y Math.random() * height;this.radius 3;this.color white;this.speed Math.random() STAY_AT_HOME ? 0 : 1;this.directionAngle Math.floor(Math.random() * 360);this.vector {x: Math.cos(this.directionAngle) * this.speed,y: Math.sin(this.directionAngle) * this.speed};this.status STATUSES.HEALTHY;if (Math.random() INFECTION_RATE) {this.infect();}}infect() {if (this.status STATUSES.INFECTED ||this.status STATUSES.RECOVERED) {return;}this.color green;this.status STATUSES.INFECTED;setTimeout(() {this.recover();}, RECOVERY_TIME);}recover() {this.status STATUSES.RECOVERED;this.color hotpink;}draw(drawCtx) {drawCtx.beginPath();drawCtx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);drawCtx.closePath();drawCtx.fillStyle this.color;drawCtx.fill();}update() {this.checkBoundaries();this.x this.vector.x;this.y this.vector.y;}checkBoundaries() {if (this.x width || this.x 0) {this.vector.x * -1;/* Ensure the dots are pushed inside */this.x Math.max(0, Math.min(width, this.x));}if (this.y height || this.y 0) {this.vector.y * -1;/* Ensure the dots are pushed inside */this.y Math.max(0, Math.min(height, this.y));}}
}/* ---------------------------------- */function distance(x1, y1, x2, y2) {var dx x1 - x2;var dy y1 - y2;return Math.sqrt(dx * dx dy * dy);
}function linkParticles(particle, otherParticles, drawCtx) {for (const p of otherParticles) {const d distance(particle.x, particle.y, p.x, p.y);if (d SAFE_DISTANCE) {continue;}// Infect other particle!if (particle.status STATUSES.INFECTED d INFECTED_DISTANCE) {p.infect();}const opacity 0.8 - (d / SAFE_DISTANCE) * 0.8;drawCtx.lineWidth 1;drawCtx.strokeStyle particle.color; //rgba(255,255,255,${opacity});drawCtx.globalAlpha opacity;drawCtx.beginPath();drawCtx.moveTo(particle.x, particle.y);drawCtx.lineTo(p.x, p.y);drawCtx.closePath();drawCtx.stroke();drawCtx.globalAlpha 1;}
}
做好的网页效果,如何通过发链接给别人看?
1.1解决部署上线~ 部署上线工具(永久免费使用)
1.不需要买服务器就能部署线上,全世界都能访问你的连接啦, 这里给大家推荐一个程序员必备神器~ 插件集成了超级多好用的插件免费下载安装简单易懂, 简直神器 ~ 需要可在文章 ↓ 下方公Z号获取
2.就是把你的代码效果做好了以后, 部署到线上, 把链接发给别人, 就可以让对方通过你的连接点击进去, 就能看到你的网页效果啦, 电脑端和手机端都可以噢! (不然别人看你的网页都要发文件过去,体验感不太好哦~)
1.1部署流程 1.2 哇~ 部署成功 哇~ 部署成功! 将你写好的页面部署上线后, 全世界的人都可以通过链接访问到你的网页了(永久免费使用哦)~ 前端 零基础 入门到高级 (视频源码开发软件学习资料面试题) 一整套 (教程) 适合入门到高级的童鞋们入手~ ❉ 源码获取
❉ ~ 关注我点赞博文~ 每天带你涨知识!
❉ 1.看到这里了就 [点赞好评收藏] 三连 支持下吧你的「点赞好评收藏」是我创作的动力。
❉ 2.关注我~ 每天带你学习 :各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者一起探讨 前端 Node 知识互相学习」
❉ 3.以上内容技术相关问题可以相互学习可关注↓公Z号 获取更多源码 ! ❉更多表白源码
❤100款表白源码演示地址