Trello canvas
How do I make an trello canvas?
Canvas congrats animation. What is a trello canvas? How do you make a trello canvas? This script and codes were developed by Khangeldy on 09 November 2022, Wednesday.
Trello canvas - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Trello canvas</title>
</head>
<body> <canvas id="confeti" class="active" width="100%" height="100vh"></canvas> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Trello canvas - Script Codes JS Codes
var COLORS, Confetti, NUM_CONFETTI, PI_2, canvas, confetti, context, drawCircle, drawCircle2, drawCircle3, i, range, xpos;
NUM_CONFETTI = 40;
COLORS = [ [235, 90, 70], [97, 189, 79], [242, 214, 0], [0, 121, 191], [195, 119, 224]
];
PI_2 = 2 * Math.PI;
canvas = document.getElementById("confeti");
context = canvas.getContext("2d");
window.w = 0;
window.h = 0;
window.resizeWindow = function() { window.w = canvas.width = window.innerWidth; return window.h = canvas.height = window.innerHeight;
};
window.addEventListener("resize", resizeWindow, !1);
window.onload = function() { return setTimeout(resizeWindow, 0);
};
range = function(a, b) { return (b - a) * Math.random() + a;
};
drawCircle = function(a, b, c, d) { context.beginPath(); context.moveTo(a, b); context.bezierCurveTo(a - 17, b + 14, a + 13, b + 5, a - 5, b + 22); context.lineWidth = 2; context.strokeStyle = d; return context.stroke();
};
drawCircle2 = function(a, b, c, d) { context.beginPath(); context.moveTo(a, b); context.lineTo(a + 6, b + 9); context.lineTo(a + 12, b); context.lineTo(a + 6, b - 9); context.closePath(); context.fillStyle = d; return context.fill();
};
drawCircle3 = function(a, b, c, d) { context.beginPath(); context.moveTo(a, b); context.lineTo(a + 5, b + 5); context.lineTo(a + 10, b); context.lineTo(a + 5, b - 5); context.closePath(); context.fillStyle = d; return context.fill();
};
xpos = 0.9;
document.onmousemove = function(a) { return xpos = a.pageX / w;
};
window.requestAnimationFrame = function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(a) { return window.setTimeout(a, 5); };
}();
Confetti = function() { function a() { this.style = COLORS[~~range(0, 5)]; this.rgb = "rgba(" + this.style[0] + "," + this.style[1] + "," + this.style[2]; this.r = ~~range(2, 6); this.r2 = 2 * this.r; this.replace(); } a.prototype.replace = function() { this.opacity = 0; this.dop = 0.03 * range(1, 4); this.x = range(-this.r2, w - this.r2); this.y = range(-20, h - this.r2); this.xmax = w - this.r; this.ymax = h - this.r; this.vx = range(0, 2) + 8 * xpos - 5; return this.vy = 0.7 * this.r + range(-1, 1); }; a.prototype.draw = function() { var a; this.x += this.vx; this.y += this.vy; this.opacity += this.dop; 1 < this.opacity && (this.opacity = 1, this.dop *= -1); (0 > this.opacity || this.y > this.ymax) && this.replace(); if (!(0 < (a = this.x) && a < this.xmax)) this.x = (this.x + this.xmax) % this.xmax; drawCircle(~~this.x, ~~this.y, this.r, this.rgb + "," + this.opacity + ")"); drawCircle3(0.5 * ~~this.x, ~~this.y, this.r, this.rgb + "," + this.opacity + ")"); return drawCircle2(1.5 * ~~this.x, 1.5 * ~~this.y, this.r, this.rgb + "," + this.opacity + ")"); }; return a;
}();
confetti = function() { var a, b, c; c = []; i = a = 1; for (b = NUM_CONFETTI; 1 <= b ? a <= b : a >= b; i = 1 <= b ? ++a : --a) c.push(new Confetti); return c;
}();
window.step = function() { var a, b, c, d; requestAnimationFrame(step); context.clearRect(0, 0, w, h); d = []; b = 0; for (c = confetti.length; b < c; b++) a = confetti[b], d.push(a.draw()); return d;
};
step();
Developer | Khangeldy |
Username | Khangeldy |
Uploaded | November 09, 2022 |
Rating | 3 |
Size | 2,539 Kb |
Views | 12,144 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Google map | 1,849 Kb |
Ryu Hadouken | 1,981 Kb |
Svg | 10,044 Kb |
Tutorial greensock sprite animation | 1,854 Kb |
Freecodecamp 1 | 0 Kb |
Shadertoy.com test | 2,371 Kb |
Freecodecamp3 | 0 Kb |
Shadertoy in three.js | 4,402 Kb |
Detect Facebook app in mobile devices | 1,819 Kb |
Canvas landing | 3,061 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Cloud upload | Jaflo | 2,774 Kb |
Scoreboard.js basic usage | Tbleckert | 1,733 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Sitemap generator for Sharepoint | Gyusza | 2,518 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
Two column of responsive height | Fixie | 2,908 Kb |
SVG Animation | Thepheer | 4,793 Kb |
Donald Trump - The New Yorker | Agbales | 2,502 Kb |
Social Profiles | Lachlanjc | 1,939 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!