Skip to content

Commit

Permalink
Merge pull request #66 from sankshaypusa/local1
Browse files Browse the repository at this point in the history
ADDED ANIMATION STYLES FOR THE PAGE
  • Loading branch information
muhtalhakhan authored Oct 25, 2024
2 parents 88a267a + f555fe7 commit a780a58
Showing 1 changed file with 150 additions and 0 deletions.
150 changes: 150 additions & 0 deletions src/STYLING.css
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;
}
}

0 comments on commit a780a58

Please sign in to comment.