Skip to content

Commit

Permalink
🌀
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Sep 8, 2024
1 parent bcbf2ab commit 82184a5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 4 additions & 2 deletions dist/snowflakes.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Snowflakes | © 2023 Denis Seleznev | MIT License | https://github.com/hcodes/snowflakes/ */
/*! Snowflakes | © 2024 Denis Seleznev | MIT License | https://github.com/hcodes/snowflakes/ */
let animationPrefix = '';
if (typeof window !== 'undefined') {
animationPrefix = (Array.prototype.slice
Expand Down Expand Up @@ -354,7 +354,9 @@ class Snowflakes {
const container = document.createElement('div');
addClass(container, 'snowflakes');
addClass(container, `snowflakes_gid_${this.gid}`);
this.isBody && addClass(container, 'snowflakes_body');
if (this.isBody) {
addClass(container, 'snowflakes_body');
}
setStyle(container, { zIndex: String(this.params.zIndex) });
this.params.container.appendChild(container);
return container;
Expand Down
6 changes: 4 additions & 2 deletions dist/snowflakes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Snowflakes | © 2023 Denis Seleznev | MIT License | https://github.com/hcodes/snowflakes/ */
/*! Snowflakes | © 2024 Denis Seleznev | MIT License | https://github.com/hcodes/snowflakes/ */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -363,7 +363,9 @@
var container = document.createElement('div');
addClass(container, 'snowflakes');
addClass(container, "snowflakes_gid_".concat(this.gid));
this.isBody && addClass(container, 'snowflakes_body');
if (this.isBody) {
addClass(container, 'snowflakes_body');
}
setStyle(container, { zIndex: String(this.params.zIndex) });
this.params.container.appendChild(container);
return container;
Expand Down
6 changes: 4 additions & 2 deletions dist/snowflakes.light.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Snowflakes | © 2023 Denis Seleznev | MIT License | https://github.com/hcodes/snowflakes/ */
/*! Snowflakes | © 2024 Denis Seleznev | MIT License | https://github.com/hcodes/snowflakes/ */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -363,7 +363,9 @@
var container = document.createElement('div');
addClass(container, 'snowflakes');
addClass(container, "snowflakes_gid_".concat(this.gid));
this.isBody && addClass(container, 'snowflakes_body');
if (this.isBody) {
addClass(container, 'snowflakes_body');
}
setStyle(container, { zIndex: String(this.params.zIndex) });
this.params.container.appendChild(container);
return container;
Expand Down
2 changes: 1 addition & 1 deletion dist/snowflakes.light.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

0 comments on commit 82184a5

Please sign in to comment.