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 Loading Animation #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
53 changes: 38 additions & 15 deletions frontend-task/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,30 @@ body {
}
}


.btn-search.loading {
background-color: #f9f2f2;
cursor: not-allowed;
color: #ebeaea;
font-weight: bold;
background-image: linear-gradient(90deg, #fbe0e0 25%, transparent 25%, transparent 50%, #d2adad 50%, #f8eeee 75%, transparent 75%, transparent);
background-size: 4px 4px;
animation: loading 1s infinite linear;
}



@keyframes loading {
0% {
background-position: 0 0;
}

100% {
background-position: 4px 0;
}
}


/* BALL ANIMATION OVER*/
/* tablet */
@media (max-width: 768px) and (min-width: 480px) {
Expand Down Expand Up @@ -334,7 +358,7 @@ body {
}
}

/*Small Laptops*/
/* /Small Laptops/ */
@media (max-width: 1280px) and (min-width: 768px) {

.container {
Expand All @@ -347,21 +371,20 @@ body {
flex-direction: column;
gap: 36px;
}
}

/*desktops*/
/* Solution to issue-16 */
@media (min-width: 1920px) {
.container {
width: 30vw;
position: absolute;
top: 20vh;
left: 50vw;
transform: translateX(-50%);
display: flex;
flex-direction: column;
gap: 36px;
}

/* /desktops/ */
/* Solution to issue-16 */
@media (min-width: 1920px) {
.container {
width: 30vw;
position: absolute;
top: 20vh;
left: 50vw;
transform: translateX(-50%);
display: flex;
flex-direction: column;
gap: 36px;
}

}