❤程序猿的我向女友求婚❤, 我用代码给女朋友送了一个礼物「可以拿去送给自己喜欢的人」

520情人节到了,作为程序猿的我用代码给女朋友送了一个礼物「可以拿去送给自己喜欢的人」

妈妈再也不担心我找不到女朋友了,~

谁说我们程序猿不浪漫,马上要到520情人节了。当你在为女朋友买什么礼物犯愁的时候,不妨花点时间给她送个别样的礼物。更能体现你的真心,何乐而不为了?

点↓↓↓下方链接即可查看线上地址

❤在线演示地址

在这里插入图片描述

❤来点樱花点缀一下吧

在这里插入图片描述

❤文件目录

在这里插入图片描述

❤html

<!--
 * @Author: your name
 * @Date: 2021-03-12 09:05:12
 * @LastEditTime: 2021-03-12 09:05:20
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \canvas绘制爱心❤\index.html
-->
<!DOCTYPE html>
<html>
  <head>
    <title></title>
  </head>
  <style>
    * {
     
     
      padding: 0;
      margin: 0;
    }
    html,
    body {
     
     
      height: 100%;
      padding: 0;
      margin: 0;
      background: #000;
    }
    canvas {
     
     
      position: absolute;
      width: 100%;
      height: 100%;
    }
    .aa {
     
     
      position: fixed;
      left: 50%;
      bottom: 10px;
      color: #ccc;
    }
  </style>
  <body>
    <canvas id="pinkboard"></canvas>

    <script>
      /*
       * Settings
       */
      var settings = {
     
     
        particles: {
     
     
          length: 500, // maximum amount of particles
          duration: 2, // particle duration in sec
          velocity: 100, // particle velocity in pixels/sec
          effect: -0.75, // play with this for a nice effect
          size: 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) {
     
     
          window.requestAnimationFrame = window[c[a] + "RequestAnimationFrame"];
          window.cancelAnimationFrame =
            window[c[a] + "CancelAnimationFrame"] ||
            window[c[a] + "CancelRequestAnimationFrame"];
        }
        if (!window.requestAnimationFrame) {
     
     
          window.requestAnimationFrame = 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 g;
          };
        }
        if (!window.cancelAnimationFrame) {
     
     
          window.cancelAnimationFrame = function (d) {
     
     
            clearTimeout(d);
          };
        }
      })();

      /*
       * Point class
       */
      var Point = (function () {
     
     
        function Point(x, y) {
     
     
          this.x = typeof x !== "undefined" ? x : 0;
          this.y = typeof y !== "undefined" ? y : 0;
        }
        Point.prototype.clone = function () {
     
     
          return new Point(this.x, this.y);
        };
        Point.prototype.length = function (length) {
     
     
          if (typeof length == "undefined")
            return Math.sqrt(this.x * this.x + this.y * this.y);
          this.normalize();
          this.x *= length;
          this.y *= length;
          return this;
        };
        Point.prototype.normalize = function () {
     
     
          var length = this.length();
          this.x /= length;
          this.y /= length;
          return this;
        };
        return Point;
      })();

      /*
       * Particle class
       */
      var Particle = (function () {
     
     
        function Particle() {
     
     
          this.position = new Point();
          this.velocity = new Point();
          this.acceleration = new Point();
          this.age = 0;
        }
        Particle.prototype.initialize = function (x, y, dx, dy) {
     
     
          this.position.x = x;
          this.position.y = y;
          this.velocity.x = dx;
          this.velocity.y = dy;
          this.acceleration.x = dx * settings.particles.effect;
          this.acceleration.y = dy * settings.particles.effect;
          this.age = 0;
        };
        Particle.prototype.update = function (deltaTime) {
     
     
          this.position.x += this.velocity.x * deltaTime;
          this.position.y += this.velocity.y * deltaTime;
          this.velocity.x += this.acceleration.x * deltaTime;
          this.velocity.y += this.acceleration.y * deltaTime;
          this.age += deltaTime;
        };
	... 关注下方公众号回复005 即可获取源码 
    </script>
  </body>
</html>


爱心相片制作步骤↓

1.下载美图秀秀/百度下载/或者软件安装
在这里插入图片描述
2.选择需要裁减的图片
在这里插入图片描述
3.开始裁减
*图片裁减大小建议在 600px 600px 左右 否则图片太大,页面会出现卡顿现象哦
在这里插入图片描述
4.保存相片
在这里插入图片描述
在这里插入图片描述

歌曲MP3更换教程 ↓

mp3免费下载地址: 九酷音乐 点击打开

1.搜索需要的歌曲
在这里插入图片描述

2.下载
在这里插入图片描述
3.获取歌曲id
在这里插入图片描述
4.关注公众号以后/复制链接到浏览器打开
在这里插入图片描述
5.下载mp3
在这里插入图片描述
6.下载完毕以后自行替换mp3文件即可(如不想修改代码,必须保持名称一致)


❤解决上线问题> (不需要服务器就能免费部署上线)部署上线工具(永久可用)

不需要买服务器就能部署线上,全世界都能访问你的连接啦, 这里给大家推荐一个程序员必备软件 , 需要可滴滴在下方下方公众号获取
插件集成了超级多好用的插件,免费下载安装,简单易懂, 简直神器

1.部署流程在这里插入图片描述

2.连接成功

将你写好的页面部署上线后, 全世界的人都可以愉快的访问到你的网页了(永久免费使用哦)

在这里插入图片描述
快动起手来吧~~~~

前端 零基础 入门到高级教学 (视频+源码+开发软件+学习资料+面试题) 一整套

在这里插入图片描述

1.看到这里了就 [点赞+好评+收藏] 支持下吧,你的「点赞,好评,收藏」是我创作的动力。

2.关注我~ 每天带你学习 :各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业设计模板 等! 「在这里有好多 前端 开发者,会讨论 前端 Node 知识,互相学习」!

3.以上内容技术相关问题可以留言/私信交流,也可以关注↓下方公众号 回复005 获取源码 !

在这里插入图片描述

更多源码

❤女朋友生日❤ HTML+css3+js 实现抖音炫酷樱花3D相册 (含背景音乐)程序员表白必备

❤炫酷烟花表白❤ html+css+js 放一场浪漫烟花秀(含音乐) 程序员表白

❤vue/react+echarts❤ 大屏可视化数据平台实战项目分享 (附源码)

❤七夕情人节❤html+css+js 漫天飞雪3D相册(含音乐自定义文字) 程序员表白必备

❤唯美满天星❤ html+css+js炫酷3D相册(含音乐可自定义文字)程序员表白必备

❤html+css+js❤ 白云飘动3D相册(含音乐)程序员表白必备

❤[前端永久免费部署上线工具] 解决不需要服务器就能将项目部署上线问题!

这个冬天, 我是这样表白的 ❉html+css+js❉ 绘制冬季下雪3D相册 (521程序员表白代码大公开)

新年祝福❤雪花飘落❤ html+css3+js 实现3D相册开关闭合旋转(情人节生日表白)必备

❤爱情墙❤html5+css3+js 实现全屏七夕表白页面 (可自定义文字相片)

❤超炫100套❤vue+echarts大屏可视化数据平台实战项目模板 (vuereact 均可使用)

抖音❤超火| html+css+js 流星雨3D相册(表白必备)制作教程来啦!

前端❤ html+css+js 实现1000个超炫酷特效(附源码)

web前端❤基于html+css+js 仿JD天猫电商平台功能齐全(免费附源码)

抖音超火❤ html+css+js 实现炫酷3D立方图像库(免费附源码)

抖音超火❤ html+css+js 实现炫酷3D魔方(免费附源码)

抖音超火❤流动爱心 html+css+js (免费附源码)

抖音超火❤罗盘时钟html+css+js (免费附源码)

亲测有效❤抖音视频去水印 ( 附源码| 仅供学习参考)

css3 实现3D旋转立方体(免费附源码)

css3 实现3D立体时钟(免费附源码)

❤雪花飘落❤ html+css+js实现2021新年倒计时特效(附源码)

七夕情人节 ❤html+css+j❤实现满屏爱心特效(程序员表白)

一款乾坤八卦风水罗盘旋转CSS3动画,给人一种玄机重重的感觉(附源码)

微信公众号开发 ❤一篇就够 [推荐收藏]

微信小程序入门教学❤ 手摸手撸小程序,一篇就够!

猜你喜欢

转载自blog.csdn.net/weixin_54234482/article/details/114685309