add meta charset tag in index.html; fix opacity calculation in fade-in effect; clean up style.css

This commit is contained in:
vista-man
2025-01-25 22:15:34 +01:00
parent 90b39f241f
commit edeca369c3
3 changed files with 3 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ window.onload = function() {
const fadeIn = () => {
let opacity = 0;
const increaseOpacity = () => {
opacity += 0.05;
opacity = parseFloat(opacity) + 0.05;
article.style.opacity = opacity;
// Continue the animation until opacity reaches 1 (fully visible)