css-protips icon indicating copy to clipboard operation
css-protips copied to clipboard

Add responsiveness with Key Frames

Open RodrigoNet0 opened this issue 2 years ago • 12 comments

RodrigoNet0 avatar Nov 10 '23 05:11 RodrigoNet0

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

HarikaB11 avatar Nov 16 '23 16:11 HarikaB11

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.

RodrigoNet0 avatar Nov 16 '23 19:11 RodrigoNet0

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

khamkarsuraj avatar Nov 20 '23 03:11 khamkarsuraj

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

RodrigoNet0 avatar Nov 20 '23 14:11 RodrigoNet0

Hello @HarikaB11 , Is anyone working on this ticket?

khamkarsuraj avatar Nov 20 '23 16:11 khamkarsuraj

@khamkarsuraj Yes, I am working on this.

HarikaB11 avatar Nov 20 '23 18:11 HarikaB11

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

shivansh84ya avatar Jul 01 '24 14:07 shivansh84ya

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

gromgit avatar Jul 02 '24 04:07 gromgit

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

you are right

ridwanyinus avatar Aug 03 '24 22:08 ridwanyinus