Skip to content

Commit

Permalink
fix: hide non-active feature images in the feature list
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Dec 10, 2024
1 parent c30e06b commit 5696b36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Features.astro
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ import browserGlance from '../assets/browser-glance.webm';
document.querySelectorAll('#feature-list-image > *').forEach((img: any, i) => {
img.style.opacity = i === index ? 1 : 0;
img.classList.toggle('absolute', i !== index);
img.classList.toggle('hidden', i !== index);
});
}

Expand Down

0 comments on commit 5696b36

Please sign in to comment.