Skip to content

Commit

Permalink
changes to minified package, ...
Browse files Browse the repository at this point in the history
  • Loading branch information
jesvijonathan committed Nov 4, 2023
1 parent 4c9596a commit 77cd5f7
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 20 deletions.
1 change: 1 addition & 0 deletions bundler/config/rollup.config_js_min.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default {
},
mangle: {
keep_classnames: true,
reserved: ["JOS"],
},
}),
],
Expand Down
16 changes: 12 additions & 4 deletions dev/jos.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,18 @@ class jos {

child.setAttribute("data-jos_duration", stagger_duration);

child.setAttribute(
"data-jos_delay",
parseFloat(stagger_delay) + stagger_seq * i
);
// let delg = parseFloat(stagger_seq, 2);
// delg = (delg * i).toFixed(1);
// delg = parseFloat(delg);
// console.log(delg);
// delg = delg + parseFloat(stagger_delay);

// const delg = parseFloat((parseFloat(stagger_seq, 2) * i).toFixed(1)) + parseFloat(stagger_delay);

const delg = parseFloat(stagger_seq * i + stagger_delay);

child.setAttribute("data-jos_delay", delg);

child.setAttribute("data-jos_once", stagger_once);

if (stagger_mirror === "false") {
Expand Down
18 changes: 14 additions & 4 deletions dev/jos.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class jos {
disable = false;

static version = "0.9.1 (Minified)";
static author = "Jesvi Jonathan";
static webpage = "https://jos-animation.vercel.app";
static github = "https://github.com/jesvijonathan/JOS-Animation-Library";

options = {};
Expand Down Expand Up @@ -328,10 +330,18 @@ class jos {

child.setAttribute("data-jos_duration", stagger_duration);

child.setAttribute(
"data-jos_delay",
parseFloat(stagger_delay) + stagger_seq * i
);
// let delg = parseFloat(stagger_seq, 2);
// delg = (delg * i).toFixed(1);
// delg = parseFloat(delg);
// console.log(delg);
// delg = delg + parseFloat(stagger_delay);

// const delg = parseFloat((parseFloat(stagger_seq, 2) * i).toFixed(1)) + parseFloat(stagger_delay);

const delg = parseFloat(stagger_seq * i + stagger_delay);

child.setAttribute("data-jos_delay", delg);

child.setAttribute("data-jos_once", stagger_once);

if (stagger_mirror === "false") {
Expand Down
16 changes: 12 additions & 4 deletions dist/jos.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,18 @@ class jos {

child.setAttribute("data-jos_duration", stagger_duration);

child.setAttribute(
"data-jos_delay",
parseFloat(stagger_delay) + stagger_seq * i
);
// let delg = parseFloat(stagger_seq, 2);
// delg = (delg * i).toFixed(1);
// delg = parseFloat(delg);
// console.log(delg);
// delg = delg + parseFloat(stagger_delay);

// const delg = parseFloat((parseFloat(stagger_seq, 2) * i).toFixed(1)) + parseFloat(stagger_delay);

const delg = parseFloat(stagger_seq * i + stagger_delay);

child.setAttribute("data-jos_delay", delg);

child.setAttribute("data-jos_once", stagger_once);

if (stagger_mirror === "false") {
Expand Down
2 changes: 1 addition & 1 deletion dist/jos.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jos.min.js

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions dist/v0.9.1/jos.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,18 @@ class jos {

child.setAttribute("data-jos_duration", stagger_duration);

child.setAttribute(
"data-jos_delay",
parseFloat(stagger_delay) + stagger_seq * i
);
// let delg = parseFloat(stagger_seq, 2);
// delg = (delg * i).toFixed(1);
// delg = parseFloat(delg);
// console.log(delg);
// delg = delg + parseFloat(stagger_delay);

// const delg = parseFloat((parseFloat(stagger_seq, 2) * i).toFixed(1)) + parseFloat(stagger_delay);

const delg = parseFloat(stagger_seq * i + stagger_delay);

child.setAttribute("data-jos_delay", delg);

child.setAttribute("data-jos_once", stagger_once);

if (stagger_mirror === "false") {
Expand Down
2 changes: 1 addition & 1 deletion dist/v0.9.1/jos.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/v0.9.1/jos.min.js

Large diffs are not rendered by default.

0 comments on commit 77cd5f7

Please sign in to comment.