mirror of https://github.com/coddrago/Heroku
Update sakura.js
parent
1d46cd5414
commit
850dfde53a
|
@ -3,11 +3,9 @@ const Sakura = function(t, e) {
|
|||
if (void 0 === t) throw new Error("No selector present. Define an element.");
|
||||
this.el = document.querySelector(t);
|
||||
var i, n;
|
||||
|
||||
function a(t) {
|
||||
return t[Math.floor(Math.random() * t.length)];
|
||||
}
|
||||
|
||||
function s(t, e) {
|
||||
return Math.floor(Math.random() * (e - t + 1)) + t;
|
||||
}
|
||||
|
@ -18,11 +16,13 @@ const Sakura = function(t, e) {
|
|||
maxSize: 14,
|
||||
minSize: 10,
|
||||
delay: 300,
|
||||
colors: [{
|
||||
colors: [
|
||||
{
|
||||
gradientColorStart: "rgba(255, 183, 197, 0.9)",
|
||||
gradientColorEnd: "rgba(255, 197, 208, 0.9)",
|
||||
gradientColorDegree: 120,
|
||||
}, ],
|
||||
},
|
||||
],
|
||||
}),
|
||||
(n = e),
|
||||
Object.keys(i).forEach((t) => {
|
||||
|
@ -31,14 +31,12 @@ const Sakura = function(t, e) {
|
|||
i)),
|
||||
(this.el.style.overflowX = "hidden");
|
||||
const o = ["webkit", "moz", "MS", "o", ""];
|
||||
|
||||
function r(t, e, i) {
|
||||
for (let n = 0; n < o.length; n += 1) {
|
||||
let a = e;
|
||||
o[n] || (a = e.toLowerCase()), t.addEventListener(o[n] + a, i, !1);
|
||||
}
|
||||
}
|
||||
|
||||
function l(t) {
|
||||
const e = t.getBoundingClientRect();
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue