Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Oct 13, 2023
1 parent 984e5e9 commit 3b52880
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leuffen/liscom-loader",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/loader/_loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ body {

& > joda-content {
opacity: 0;
transition: opacity 0.10s;
transition: opacity 0.25s;
}

&.loaded {
Expand All @@ -36,21 +36,21 @@ body {


body > .loader {

position: fixed;
z-index: 99;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #fff;
transition: opacity 0.15s;
transition: opacity 0.45s;
display: flex !important;

align-items: center;
align-content: center;
justify-content: center;
opacity: 1;

flex-wrap: wrap;
flex-direction: column;

Expand Down
2 changes: 1 addition & 1 deletion src/loader/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const hitIndex = parseInt(sessionStorage.getItem(indexName) ?? "0");
export function initLoader() {
let interval = setInterval(() => {
// Detect if body is loaded
if (document.querySelector("body")) {
if (document.body) {
// Cancel interval
clearInterval(interval);

Expand Down

0 comments on commit 3b52880

Please sign in to comment.