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
Tim Crain
4,210 Points<h1> element on top of a zooming background image
Can anyone help a newbie out...I am trying to place an h1 element on top of a zooming background image and no matter where I place it in the html it ends up above, below or behind the background image. Any help would be greatly appreciated.
Tim Crain
4,210 Pointsand here's the styles
.background-image {
max-width: 120%;
}
.cover {
overflow:hidden;
width:100%;
}
.image-zoom {
-webkit-animation: cssAnimation 20s 1 ease-out;
-moz-animation: cssAnimation 20s 1 ease-out;
-o-animation: cssAnimation 20s 1 ease-out;
}
@-webkit-keyframes cssAnimation {
from { -webkit-transform: rotate(0deg) scale(1.3); }
to { -webkit-transform: rotate(0deg) scale(1); }
}
@-moz-keyframes cssAnimation {
from { -moz-transform: rotate(0deg) scale(1.3); }
to { -moz-transform: rotate(0deg) scale(1); }
}
@-o-keyframes cssAnimation {
from { -o-transform: rotate(0deg) scale(1.3); }
to { -o-transform: rotate(0deg) scale(1); }
}
Tim Crain
4,210 PointsTim Crain
4,210 Pointshere's the markup