Skip to content

Commit

Permalink
Merge pull request #1258 from MuraliDharan7/add-effect-image
Browse files Browse the repository at this point in the history
added effects to image
  • Loading branch information
sunny0625 authored Jul 4, 2024
2 parents 1fb693a + 28ab537 commit 2492d66
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
63 changes: 63 additions & 0 deletions Css-files/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,69 @@
padding: 4rem 0;
font-family: 'Noto Sans', sans-serif;
}
.login-image {
max-width: 100%;
height: auto;
border-radius: 8px; /* Rounded corners for the image */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Soft shadow effect */
transition: transform 0.3s ease-in-out; /* Smooth transform animation */
}

.login-image:hover {
transform: scale(1.1); /* Scale up the image on hover */
}

/* Example animation for subtle background pattern */
.login-image::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom right, rgba(255,255,255,0), rgba(255,255,255,0.6)); /* Gradient overlay */
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

.login-image:hover::after {
opacity: 1; /* Fade in the gradient overlay on hover */
}

/* Example animation for a glowing effect */
.login-image::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 150%;
height: 150%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

.login-image:hover::before {
opacity: 1; /* Fade in the glowing effect on hover */
animation: pulse 2s infinite; /* Pulse animation */
}

@keyframes pulse {
0% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.2);
opacity: 0.7;
}
100% {
transform: scale(1);
opacity: 1;
}
}

.left-login img{
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion Html-files/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h1 class="m-0">LOGIN</h1>
<div class="container-fluid row m-0 justify-content-center">
<div class="col-lg-5 left-login d-flex justify-content-center align-items-center" data-aos="zoom-out-left"
data-aos-duration="1000" data-aos-offset="170" data-aos-easing="ease-in-out">
<img src="../Images/login+signup/login.png" alt="Login Image">
<img src="../Images/login+signup/login.png" alt="Login Image" class="login-image">
</div>
<div class="col-lg-6 right-login" data-aos="zoom-out-right" data-aos-duration="1000" data-aos-offset="170"
data-aos-easing="ease-in-out">
Expand Down

0 comments on commit 2492d66

Please sign in to comment.