Skip to content

Commit

Permalink
Change in CSS in firsthalf,secondhalf img and added secondhalf:hover
Browse files Browse the repository at this point in the history
  • Loading branch information
AyutheCoder committed Oct 2, 2024
1 parent 3b8369d commit 391fa71
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ html{
}

.firstHalf{

width: 80%;
display: flex;
flex-direction: column;
justify-content: center;
animation: float 1.5s ease-in-out infinite alternate;
}
.secondHalf{
width: 30%;
Expand All @@ -230,14 +230,13 @@ html{
border-radius: 10px;
display: block;
margin: auto;
animation-name: IronImage;
animation-direction: reverse;
animation-duration: 2s;
animation-iteration-count: 1;
animation-timing-function: ease;
animation: IronImage 2s ease forwards, float 1.5s ease-in-out infinite alternate;

}

.secondHalf:hover {
width:32%;
transition: ease-in;
}
@keyframes IronImage {
from{
transform: translateX(0px);
Expand All @@ -247,7 +246,14 @@ html{
transform: translateX(450px);
}
}

@keyframes float {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-10px); /* Adjust this value for the float height */
}
}
.text-big{
font-size: 35px;
font-family: 'Roboto', cursive;
Expand Down

0 comments on commit 391fa71

Please sign in to comment.