translateY()
CSS-Tricks

EDITOR BRIEF
The translateY() CSS function moves an element up or down by a specified amount. It is a vertical transform used to change an element’s position on the page without affecting layout flow.
INSIGHTS
This is useful for simple motion and UI effects in web design. Try applying translateY() in a small CSS demo to see how transforms differ from changing margins or top positions.
Learn more with these courses
CodeFriends courses that build on this story. Practice in the browser with nothing to install.
- Introduction to HTML, CSS, and JavaScriptLearn the fundamentals of HTML, CSS, and JavaScript, and build your own website from scratch.Beginner25 Hours
- Introduction to Web Development (Light)Master HTML, CSS, and JavaScript in just 10 hours.Beginner10 Hours
- Python Programming 101Learn Python in just 20 hours! Kickstart your programming journey with this beginner-friendly course.Beginner20 Hours
COMMENTS
Loading comments…