Skip to content

Commit

Permalink
24 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhenii Pashko committed Jan 26, 2025
1 parent 05b875d commit 4a46561
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
position: absolute;
width: 100%;
height: 100%;
/*object-fit: none;*/
object-fit: unset;
z-index: 10;
transition: opacity 0.1s ease;
}
Expand Down Expand Up @@ -66,7 +66,7 @@
if ( index < shuffledPixels.length ) {
wholeImage.style.opacity = 1 - (index / shuffledPixels.length);
shuffledPixels[ index ].style.opacity = '0';
setTimeout( () => fadeOutNextPixel( index + 1 ), 1 );
setTimeout( () => fadeOutNextPixel( index + 1 ), 100 );
} else {
wholeImage.style.opacity = 0;
isDisassembled = true;
Expand All @@ -81,7 +81,7 @@
if ( index < shuffledPixels.length ) {
wholeImage.style.opacity = index / shuffledPixels.length;
shuffledPixels[ index ].style.opacity = '1';
setTimeout( () => fadeInNextPixel( index + 1 ), 1 );
setTimeout( () => fadeInNextPixel( index + 1 ), 100 );
} else {
wholeImage.style.opacity = 1;
isDisassembled = false;
Expand Down

0 comments on commit 4a46561

Please sign in to comment.