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

Modified the box design #262

Merged
merged 4 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
82 changes: 54 additions & 28 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1668,18 +1668,23 @@ h1 {
}
}

#time-range-val{
padding: 1rem;
}

#gameplayTime {
background: rgb(249,249,202);
background: radial-gradient(circle, rgb(230, 252, 255) 26%, rgb(112, 245, 240) 100%);
border-width: 10px;
border-style: solid;
animation: colorfulBorder1 4s infinite linear;
color: black;

background: #07182E;
background: radial-gradient(circle, rgb(230, 252, 255) 26%, rgb(1, 24, 23) 100%);
border-width: 1px;
box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); /* Initial glowing effect */
color: rgb(255, 245, 245);
position: absolute;
z-index: 8;
padding: 1rem;
padding: 3rem;
font-family: 'Times New Roman', Times, serif;
font-weight: bold;
font-size: larger;
display: none;
align-items: center;
justify-content: center;
Expand All @@ -1689,34 +1694,55 @@ h1 {
flex-direction: column;
justify-content: space-evenly;
transition: all 0.5s ease-in-out;
/* animation-name: scaleMenu;*/
transform: scale(1);
border-radius: 20px;
overflow: hidden;

}

@keyframes colorfulBorder1 {
0% {
border-color: red;
transform: scale(1.2);
}

25% {
border-color: orange;
}

50% {
border-color: yellow;
}
#gameplayTime b{
z-index: 1;
margin-bottom: 10px;
}
#gameplayTime div{
z-index: 1;
}
#gameplayTime h2{
z-index: 1;
}
#gameplayTime input{
z-index: 1;
}

75% {
border-color: violet;
/* Adding color revolving effect */
#gameplayTime::before {
content: '';
position: absolute;
width: 200px;
background-image: linear-gradient(180deg, rgb(0, 183, 255), rgb(255, 48, 255));
height: 300%;
animation: rotBGimg 3s linear infinite;
transition: all 0.2s linear;
}

@keyframes rotBGimg {
from {
transform: rotate(0deg);
}

100% {
border-color: rgb(28, 31, 228);
transform: scale(1.3);

to {
transform: rotate(360deg);
}
}
}

#gameplayTime::after {
content: '';
position: absolute;
background: #07182E;
/*background: radial-gradient(circle, rgb(230, 252, 255) 26%, rgb(218, 11, 255) 100%);
*/inset: 5px;
border-radius: 15px;
}

* {
cursor: none;
Expand Down
2 changes: 2 additions & 0 deletions assets/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ <h3 id="score" class="score">Score: 0</h3>
<input type="range" max="300" min="30" id="time-range" style="width: 30vw;" onchange="set_time_range_val()"
onmousemove="set_time_range_val()" ontouchmove="set_time_range_val()">


<br><br>
<!--Difficulty mode options added -->
<h2>Select Your Preferred Difficulty</h2>
Expand All @@ -529,6 +530,7 @@ <h2>Select Your Preferred Difficulty</h2>
<div style="position: relative;">
<button id="start-btn-time" class="btn2" onclick="closeGameplayDialog()">Start 🎮</button>
</div>

</div>
</div>
<!----- Footer Section ----->
Expand Down
Loading