Question:
Can someone help explain why the button doesn’t move off-screen when I press it? The button just does nothing.
Repl link:
https://replit.com/@ColoredHue/WorldlyFluidScope#style.css
Question:
Can someone help explain why the button doesn’t move off-screen when I press it? The button just does nothing.
Repl link:
https://replit.com/@ColoredHue/WorldlyFluidScope#style.css
this is because your CSS to align the button initially uses position: absolute, top: 50%, left: 50%, and transform. In the slideOut keyframes, make sure to set transform to nothing and reset the position attribute.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.