-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from sankshaypusa/local1
ADDED ANIMATION STYLES FOR THE PAGE
- Loading branch information
Showing
1 changed file
with
150 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
/* Global Styling */ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: 'Arial', sans-serif; | ||
} | ||
|
||
/* Body Styling */ | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: #f5f5f5; | ||
animation: fadeIn 1s ease-in-out; | ||
} | ||
|
||
/* Form Container */ | ||
form { | ||
width: 100%; | ||
max-width: 400px; | ||
padding: 20px; | ||
background-color: white; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
border-radius: 8px; | ||
animation: slideDown 0.7s ease-in-out; | ||
} | ||
|
||
/* Form Title */ | ||
form h2 { | ||
text-align: center; | ||
margin-bottom: 20px; | ||
color: #333; | ||
animation: textAppear 0.5s ease-in-out; | ||
} | ||
|
||
/* Input Field Styling */ | ||
input[type="text"], | ||
input[type="email"], | ||
input[type="password"], | ||
textarea { | ||
width: 100%; | ||
padding: 10px; | ||
margin: 10px 0; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
transition: all 0.3s ease-in-out; | ||
animation: inputFade 0.5s ease-in-out; | ||
} | ||
|
||
/* Label Styling */ | ||
label { | ||
font-weight: bold; | ||
display: block; | ||
margin-bottom: 5px; | ||
color: #333; | ||
animation: fadeIn 1s ease-in-out; | ||
} | ||
|
||
/* Input Hover and Focus Animation */ | ||
input:focus, | ||
textarea:focus { | ||
border-color: #28a745; | ||
box-shadow: 0 0 8px rgba(40, 167, 69, 0.5); | ||
} | ||
|
||
/* Button Styling */ | ||
button { | ||
width: 100%; | ||
padding: 10px; | ||
background-color: #28a745; | ||
border: none; | ||
color: white; | ||
font-size: 16px; | ||
cursor: pointer; | ||
border-radius: 5px; | ||
margin-top: 10px; | ||
transition: background-color 0.3s ease, transform 0.3s ease; | ||
animation: buttonBounce 1.2s ease-in-out infinite alternate; | ||
} | ||
|
||
/* Button Hover Effect */ | ||
button:hover { | ||
background-color: #218838; | ||
transform: scale(1.05); | ||
} | ||
|
||
/* Textarea Styling */ | ||
textarea { | ||
resize: none; | ||
} | ||
|
||
/* Animations */ | ||
@keyframes fadeIn { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes slideDown { | ||
from { | ||
transform: translateY(-20px); | ||
opacity: 0; | ||
} | ||
to { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes textAppear { | ||
from { | ||
opacity: 0; | ||
transform: translateY(-10px); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
@keyframes inputFade { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes buttonBounce { | ||
from { | ||
transform: translateY(0); | ||
} | ||
to { | ||
transform: translateY(-5px); | ||
} | ||
} | ||
|
||
/* Responsive Design */ | ||
@media (max-width: 480px) { | ||
form { | ||
padding: 15px; | ||
} | ||
} |