Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added anuj-My.html file #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Now, once you've forked this repo and got a local version up on your computer, f
- [Chinese New Year](/submissions/miraclebanks.html) - By: [Miracle](https://github.com/miraclebanks)
- [Wedding Landing Page](/submissions/mattcsmith.html) - By: [Matt](https://github.com/mattcsmith)
- [Matteos Trattoria](/submissions/matthewvanpelt.html) - By: [Matt](https://github.com/mattvp21)
- [Background Reveal Animation](/submissions/anuj-My.html) - By: [Anuj](https://github.com/anuj-My)
- [Jaguar Field Notes](/submissions/procesorplus.html) - By: [procesorplus](https://github.com/procesorplus)
- [Portfolio Page (Landing/About)](/submission/breyrivera2021.html) - By: [Brey Rivera](https://github.com/BreyRivera2021)
- [Smooth Scroll Template](/submissions/joesayat.html) - By: [Joe](https://github.com/joesayat)
Expand All @@ -54,7 +55,6 @@ Now, once you've forked this repo and got a local version up on your computer, f
- [Tic tac toe](./submissions/sherawat-Lokesh.html) -By: [sherawat-Lokesh](https://github.com/sherawat-Lokesh)
- [House Garbage Management website](/submissions/Fly0w.html) - By: [Fly0w](https://github.com/Fly0w)


## One Last Thing!

**Please note: As with all ZTM challenges there is zero benefit or monetary gain ZTM receives from it. This is just our way of thanking students and making sure that you are able to continue gaining valuable knowledge outside of just the course videos. It would mean a lot to us if you are able to rate the course(s) you are taking...5 star reviews makes Andrei's day :)**
105 changes: 105 additions & 0 deletions submissions/anuj-My.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Background Reveal Animation</title>

<style>
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}

main {
position: relative;
height: 100vh;
}

.side .fancy {
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
sans-serif;
font-size: 1.3em;
line-height: 0.8em;
}

.side {
background-color: black;
width: 100%;
height: 100vh;
display: grid;
place-items: center;
overflow: hidden;
position: absolute;
}

.side .title {
color: white;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
sans-serif;
font-size: 8vw;
margin: 0 15vw;
width: 70vw;
}

#left-side .title {
color: white;
}

#left-side .fancy {
color: yellow;
}

#right-side .title {
color: rgb(39, 39, 39);
}

#right-side .fancy {
color: white;
}

#right-side {
background-color: #992bff;
}

#left-side {
z-index: 2;
background-color: rgb(32, 255, 181);
}
</style>
</head>
<body>
<main>
<div id="right-side" class="side">
<h2 class="title">
Today is going to
<span class="fancy"> awesome </span>
</h2>
</div>
<div id="left-side" class="side">
<h2 class="title">
Today is going to
<span class="fancy"> wonderful </span>
</h2>
</div>
</main>

<script>
const left = document.getElementById("left-side");

const handleOnMove = (e) => {
const p = (e.clientX / window.innerWidth) * 100;

left.style.width = `${p}%`;
};

document.onmousemove = (e) => handleOnMove(e);
document.ontouchmove = (e) => handleOnMove(e.touches[0]);
</script>
</body>
</html>