Happy Birthday

html, body { margin: 0; background: #020202; cursor: crosshair; } canvas{display:block} h1 { position: absolute; top: 20%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-family: "Source Sans Pro"; font-size: 5em; font-weight: 900; -webkit-user-select: none; user-select: none; $(function() { // helper functions const PI2 = Math.PI * 2 const random = (min, max) => Math.random() * (max - min + 1) + min | 0 const timestamp = _ => new Date().getTime() // container class Birthday { constructor() { this.resize() // create a lovely place to store the firework this.fireworks = [] this.counter = 0 } resize() { this.width = canvas.width = window.innerWidth let center = this.width / 2 | 0 this.spawnA = center - center / 4 | 0 this.spawnB = center + center / 4 | 0 this.height = canvas.height = window.innerHeight this.spawnC = this.height * .1

Comments

Popular posts from this blog

Valentine's day

Happy Republic Day

Happy new year 2022