diff --git a/index.html b/index.html index d869f6f..b796d8a 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,8 @@ My Simple Wikipedia + + diff --git a/script.js b/script.js index 0ffd114..02798c9 100644 --- a/script.js +++ b/script.js @@ -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) diff --git a/style.css b/style.css index 43d110d..94ebc28 100644 --- a/style.css +++ b/style.css @@ -32,11 +32,6 @@ h2 { padding-bottom: 5px; /* Add padding below the heading */ } -h1, h2 { - background-image: none; /* Remove background image */ - color: #007bff; /* Set text color */ -} - p { color: #555; /* Set text color */ line-height: 1.6; /* Set line height */