mirror of
https://github.com/pabloquablo/RTA-test.git
synced 2026-03-06 03:06:35 +01:00
add meta charset tag in index.html; fix opacity calculation in fade-in effect; clean up style.css
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
<head>
|
||||
<!-- The title of the webpage -->
|
||||
<title>My Simple Wikipedia</title>
|
||||
<!-- Meta tag for character encoding -->
|
||||
<meta charset="UTF-8">
|
||||
<!-- Link to the external CSS file for styling -->
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user