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

Change in CSS in firsthalf,secondhalf img and added secondhalf:hover #107

Merged
merged 1 commit into from
Oct 2, 2024
Merged
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
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