Skip to content

Commit

Permalink
Added spirograph fade in
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumGilly committed Nov 10, 2022
1 parent e9e3423 commit 58c81ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</head>
<body>
<!-- Background -->
<div>
<iframe src="./spirograph.html" width="100%" height="100%" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<div id="spiro">
<iframe src="./spirograph.html" width="100%" height="100%" frameborder="0" scrolling="no" seamless="seamless" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>


Expand Down
11 changes: 6 additions & 5 deletions indexScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ async function typeName() {
}

async function fadeInPage() {
if (notSkipped) {
$("#SubTitle").fadeIn(3000);
} else {
$("#SubTitle").fadeIn(0);
}
$("#nav-placeholder").load("navbar.html");
if (notSkipped) {
$("#SubTitle").fadeIn(3000);
$("#nav-placeholder").fadeIn(3000);
$("#spiro").fadeIn(3000);

} else {
$("#SubTitle").fadeIn(0);
$("#nav-placeholder").fadeIn(0);
$("#spiro").fadeIn(0);
}
}

Expand All @@ -58,4 +58,5 @@ window.addEventListener("keydown", (event) => {
// do something
notSkipped = false;
});
$("#spiro").hide();
typeName();

0 comments on commit 58c81ae

Please sign in to comment.