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

Funny CSS behaviour #30

Open
cerealenjoyer opened this issue Feb 11, 2022 · 2 comments
Open

Funny CSS behaviour #30

cerealenjoyer opened this issue Feb 11, 2022 · 2 comments
Labels
bug Something isn't working UX/UI

Comments

@cerealenjoyer
Copy link

lil thing but when you resize the window it slooooowly scrolls up the screen, idk quite how to explain it

@cerealenjoyer cerealenjoyer added bug Something isn't working UX/UI labels Feb 11, 2022
@cerealenjoyer
Copy link
Author

Ah it's tied to the logo resizing! it moves everything around the screen in a slightly quirky way

@oliverjam
Copy link

Yeah I think it's caused by this CSS

img {
  transition: all 5s ease-in-out;
}

Transitioning every single transitionable CSS property is rarely what you want 😅. This means a bunch of layout stuff will transition too, which is why things float around really slowly on resize. It's a good idea to specify just the property you're trying to transition.

I'm not actually sure this transition is necessary—the images don't have anything transitioning (just the rotation animation, which doesn't need a transition)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UX/UI
Projects
None yet
Development

No branches or pull requests

2 participants