We would like to know how to slide up banner background.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--from w w w. ja v a2 s.c o m-->
width: 200px;
height: 100px;
overflow: hidden;
border-radius: 5px;
background: #eee;
}
a {
position: relative;
width: 200px;
height: 200px;
line-height: 100px;
text-align: center;
display: block;
text-decoration: none;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
a:hover {
margin-top: -100px;
}
</style>
</head>
<body>
<div>
<a href="">link <span> <img
src="http://placehold.itom/400x200" />
</span>
</a>
</div>
</body>
</html>
The code above is rendered as follows: