Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

affash
9,139 PointsChallenge Task 1 of 2
I cant pass this step . can any one help me .
/* overlay and img transitions ---------- */
.overlay,
img {
transition: transform .6s ease-out;
}
/* overlay and img transforms ---------- */
.photo:hover .overlay {
transform: 100%;
}
.photo:hover img {
}
<!DOCTYPE html>
<html>
<head>
<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">
</head>
<body>
<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>
</div>
</div>
</div>
</body>
</html>
1 Answer

Jonathan Grieve
Treehouse Moderator 90,705 PointsTry using the translate property. The hint is in the code challenge. CSS has specific methods to move elements from the original space.
.photo:hover img {
transform: translateY(-100%);
}
Since The Y axis covers where elements are in terms of top to bottom, if you want to move the element up, you should give the method a negative value.