Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Transitions and Transforms Getting Started with CSS Transforms CSS Transforms Challenge

Spencer Mendoza
Spencer Mendoza
6,978 Points

The transform translate function

In the challenge I am on right now it asks me to move the element up 100% from its original space. I am typing: transform: translatey(-100%); and it says I'm wrong and to make sure I'm using the correct transform function. I'm not sure where I'm going wrong.

/* overlay and img transitions ---------- */

img  {
    transition: transform .6s ease-out;

/* overlay and img transforms ---------- */

.photo:hover .overlay {
  transform: translate(-100px);
.photo:hover img {

<!DOCTYPE html>
    <title>Transform Challenge</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="page.css">
    <link rel="stylesheet" href="style.css">
    <div class="container">

        <div class="photo">
          <img src="1.jpg" alt="Big Sur">
          <div class="overlay">
              <h3>Big Sur, California</h3>
              <p>Big Sur is a rugged stretch of California's central coast between Carmel and San Simeon.</p>

Spencer Mendoza
Spencer Mendoza
6,978 Points

I figured it out, I needed to capitalize the Y in translateY. I was typing translatey and it was showing it was incorrect. Also, when I posted this question I was trying anything else I thought might work. I know that translate(100%) will only affect the x-axis but I was hoping for at least something.

1 Answer

Steven Parker
Steven Parker
229,708 Points

:star: Congratulations on resolving your own issue. :+1: