Skip to content

Gloster Skin animation #1

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Gloster Skin animation #1

wants to merge 3 commits into from

Conversation

cw-aditya
Copy link
Owner

No description provided.

@cw-aditya cw-aditya changed the title Assignment Completed Gloster Skin animation Oct 10, 2024
css/fog.css Outdated
Comment on lines 15 to 17
/* filter:blur(2px); */
/* mix-blend-mode: multiply; */
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unnecessary comments

css/fog.css Outdated
Comment on lines 20 to 22
transform: translateX(
970px
);
Copy link

@cw-kailas cw-kailas Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be wrapped in single line... goes for all instances

css/gloster.css Outdated
position: absolute;
scale: 0.5;
opacity: 0;
animation: gloster-front-view-animation 6s linear forwards;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gloster-front-view-animation animation name is misleading... can we provide a better name?

css/gloster.css Outdated
scale: 0.5;
}
10%{
opacity: 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
opacity: 0;

css/gloster.css Outdated
Comment on lines 28 to 35
50%{
opacity: 1;
scale: 1;
}
100% {
opacity: 1;
scale: 1;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we changed opacity for 0% -> 25%
after which opacity is constant... so we can remove it from 50% and 100%

css/gloster.css Outdated
opacity: 1;
}
50%{
opacity: 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
opacity: 1;

css/gloster.css Outdated
scale: 1;
}
100% {
opacity: 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
opacity: 1;

css/gloster.css Outdated
}
50% {
opacity: 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove space/newlines from all instances

css/mgzs.css Outdated
Comment on lines 1 to 16
.mgzs-car-container {
width: 350px;
height: 100%;
background-image: url('../assets/mgzs.png');
background-repeat: no-repeat;
background-size: contain;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 200px;
left: calc(50%);
translate: -10%;
animation: mgzs-animation 5s linear forwards;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge all css in single file... instead of breaking it in multiple

css/hector.css Outdated

@keyframes hector-animation {
0% {
transform: calc(50%);
Copy link

@cw-kailas cw-kailas Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove calc if not required... check for all instances

css/mgzs.css Outdated
top: 200px;
left: calc(50%);
translate: -10%;
animation: mgzs-animation 5s linear forwards;
Copy link

@cw-kailas cw-kailas Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mgzs name is again misleading... can we improve it

Copy link

@cw-kailas cw-kailas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

@cw-aditya
Copy link
Owner Author

Modified code according to the comments.
Except 1.
Regarding transition, where the transition completes at 50% but the same values are forwarded to 100%.
Will look into that.

index.html Outdated

<div class="mgzs-car-container">
<img
src="./assets/mgzswheel.png"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check can we do it without using image tag

<link rel="stylesheet" href="./css/mgzs.css" />
</head>

<body>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  use only 5 div for html and achieve other using css

<div class="fog"></div> <div class="red-car"></div> <div class="blue-car"></div> <div class="middle-car"></div> <div class="introducing-title"></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants