Skip to content

Commit

Permalink
interactibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CHooverShrimp committed Oct 20, 2024
1 parent c81e9cc commit 722a726
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions public/js/curtain.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ document.getElementById('enter-button').addEventListener('click', function() {
// Disable hidden overflow, let user scroll
document.body.style.overflow = 'hidden';

// Let users interact immediately
document.querySelector('.curtain-container').style.pointerEvents = 'none';

// Hide the curtain container after the animation
setTimeout(function() {
document.querySelector('.curtain-container').style.display = 'none';
Expand Down
12 changes: 6 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ import Card from '../components/Card.astro';
}

.gradient1 {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: radial-gradient(circle, transparent 50%, rgb(0, 0, 0));
pointer-events: none;
content: '';
position: absolute;
width: 100%;
height: 100%;
background: radial-gradient(circle, transparent 50%, rgb(0, 0, 0));
pointer-events: none;
}

.fading-image {
Expand Down

0 comments on commit 722a726

Please sign in to comment.