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

Add responsiveness with Key Frames #182

Open
RodrigoNet0 opened this issue Nov 10, 2023 · 11 comments
Open

Add responsiveness with Key Frames #182

RodrigoNet0 opened this issue Nov 10, 2023 · 11 comments

Comments

@RodrigoNet0
Copy link

No description provided.

@HarikaB11
Copy link

Hi, I like to work on this issue, but no description is provided to move forward.

@RodrigoNet0
Copy link
Author

Desktop style

@media (min-width: 992px) {
.element {
animation: desktop-animation 3s infinite;
}
}

Mobile style

@media (max-width: 991px) {
.element {
animation: mobile-animation 3s infinite;
}
}

Desktop animation

@Keyframes desktop-animation {
0% { background-color: red; left: 0px; top: 0px;}
25% { background-color: yellow; left: 200px; top: 0px;}
50% { background-color: blue; left: 200px; top: 200px;}
75% { background-color: green; left: 0px; top: 200px;}
100% { background-color: red; left: 0px; top: 0px;}
}

Mobile animation

@Keyframes mobile-animation {
0% { background-color: blue; left: 0px; top: 0px;}
25% { background-color: green; left: 100px; top: 0px;}
50% { background-color: red; left: 100px; top: 100px;}
75% { background-color: yellow; left: 0px; top: 100px;}
100% { background-color: blue; left: 0px; top: 0px;}
}

This is just a simple example. You can customize the animations and media breakpoints to suit your specific needs. Remember, the animation can be anything from color change, movement, transformation, etc. The key is to define different keyframes for different screen sizes.

@khamkarsuraj
Copy link

Hello @RodrigoNet0,
I can work on this ticket. Could you assign me this task?

@RodrigoNet0
Copy link
Author

Hello @khamkarsuraj are you ok?
The admins didn't give me that decision-making power, you can contact the lady in the comment above

@khamkarsuraj
Copy link

Hello @HarikaB11 ,
Is anyone working on this ticket?

@HarikaB11
Copy link

@khamkarsuraj Yes, I am working on this.

@shivansh84ya
Copy link

I would like to work on this issue. Could you please assign it to me?
Thanks!

@gromgit
Copy link

gromgit commented Jul 2, 2024

I'm pretty sure the correct process is to raise a PR with the appropriate changes, not wait to be assigned.

@ridwanyinus
Copy link

I'm pretty sure the correct process is to raise a PR with the appropriate changes, not wait to be assigned.

you are right

@DSingh0304
Copy link

Hi, I am new to contributions, still a rookie but I will still try !!

@DSingh0304
Copy link

/* Tablet style */
@media (min-width: 768px) and (max-width: 991px) {
.element {
animation: tablet-animation 3s infinite;
}
}

/* Tablet animation */
@Keyframes tablet-animation {
0% { background-color: purple; left: 0px; top: 0px;}
25% { background-color: orange; left: 150px; top: 0px;}
50% { background-color: pink; left: 150px; top: 150px;}
75% { background-color: cyan; left: 0px; top: 150px;}
100% { background-color: purple; left: 0px; top: 0px;}
}

This is some CSS added by me ..

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

No branches or pull requests

7 participants