Skip to content
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 about.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
color: #fff;
font-weight: 500;
font-size: 18px;
margin-bottom: 10px; /To add spacing between bottom/
margin-bottom: 10px; /*To add spacing between bottom*/
}
.buttons a {
text-decoration: none;
Expand Down
11 changes: 10 additions & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,20 @@ openm=m=>{
document.getElementById(m).style.display="block";
};
play=()=>{
const newtons_loader = document.querySelector(".backdrop");
newtons_loader.style.display = "block";
setTimeout(() => {
newtons_loader.style.display="0";
setTimeout(() => {
newtons_loader.remove();
}, 500);
}, 2000);

setTimeout(()=>{
document.querySelector(".pop-up").style.display="block";
document.querySelector(".outer").style.filter="blur(3px)";

},500);
},3500);
hintInterval = setInterval(enableHint, hintTime);
finalize();
score();
Expand Down
17 changes: 13 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link rel="icon" href="./atom.png" type="image/png" />
</head>

<body>
<body class="body">
<div class="preloader">
<div class="circle"></div>
</div>
Expand Down Expand Up @@ -90,7 +90,7 @@ <h2 class="modal" id="discoverydesc" style="padding: 10%"></h2>
</div>
</div>

<<<<<<< HEAD

<div class="outer">
<div class="upper">
<div id="btnhome">
Expand Down Expand Up @@ -137,7 +137,6 @@ <h1 id="discovery" class="modal"></h1>
<h2 class="modal" id="discoverydesc" style="padding: 10%"></h2>
</div>
</div>
>>>>>>> ad96bca5a1893b9747bb20e555618c05f0b191e4

<div id="forge" class="forge drop move">
<div id="trash" style="cursor: pointer">🚮</div>
Expand All @@ -157,7 +156,17 @@ <h2 class="modal" id="discoverydesc" style="padding: 10%"></h2>
</div>
</div>
</div>

<div class="backdrop" style="display:none">
<div class="loader_container" >
<div class="pendulum">
<div class="ball" id="first"></div>
<div class="ball"></div>
<div class="ball"></div>
<div class="ball"></div>
<div class="ball" id="last"></div>
</div>
</div>
</div>
<div class="pop-up-container">
<div class="pop-up" style="display: none">
<div class="upper-cross" style="padding: 4px">
Expand Down
86 changes: 84 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,89 @@ button {
background-color: #fff;
border: none;
}
/* Newtons cradle preloader */
/* body{
background-color: rgb(185, 177, 177);
} */
.backdrop{
background-color: rgb(24, 24, 24);
top: 0;
left: 0;
width: 100vw;
height: 100vh;
position: absolute;
}
.loader_container{
height: 150px;
background-color: rgb(24, 24, 24);
width: 300px;
position: absolute;
/* justify-content: center; */
border-radius: 5%;
align-items: center;
top: 50%;
left: 50%;
border-top: 20px solid rgb(184, 49, 49);
transform: translate(-50%, -50%);
}
.pendulum{
display: flex;
flex-wrap: wrap;
/* margin-left: 13px ; */
align-items: center;
flex-direction: row;
padding: 100px 0 0 45px;
position: absolute;
flex: 1;

}
.ball{
height: 10px;
width: 10px;
background: radial-gradient(at 80% 30%,rgb(116, 22, 22),rgb(230, 48, 48));

border-radius: 50%;
padding: 1rem;
position: relative;
transform-origin: 50% -100px;
}
.ball::before{
content: '';
width: 2px;
height: 100px;
background: radial-gradient(at 80% 30%,rgb(116, 22, 22),rgb(230, 48, 48));
left: 20px;
top: -100px;
position: absolute;
}
#first{
animation: firstball 1.1s alternate ease-in infinite;
}

@keyframes firstball{
0%{
transform: rotate(35deg);
}
50%{
transform: rotate(0deg);
}
}

#last{
animation: lastball 1.1s alternate ease-out infinite;
}

@keyframes lastball{
50%{
transform: rotate(0deg);
}
100%{
transform: rotate(-35deg);
}
}


/* 'hello enthusiats' wala popup */
.pop-up-container {
position: fixed;
top: 0;
Expand Down Expand Up @@ -488,8 +570,8 @@ a {
border-radius: 20px;
}
}
background-color: rgb(216, 0, 0);
}
/* background-color: rgb(216, 0, 0); */
/* } */


@media (max-width: 1024px) {
Expand Down