Reputation: 1420
The ad should slide from bottom of background image and then get fixed at position at which it is showing. Just a sliding effect from bottom till ad shows.
For example please check ad on this page:-
Upvotes: 1
Views: 8609
Reputation: 17687
i guess this is what you are looking for :
.container {
position:relative;
overflow:hidden;
width:300px;
height:200px;
}
.img {
width:100%;
height:100%;
background:blue;
}
.slidemeup{
background:red;
position:absolute;
bottom:-50px;;
height:50px;
width:100%;
left:0;
animation-name:slideup;
animation-delay:0.5s;
animation-duration:0.8s;
animation-fill-mode:forwards;
animation-timing-function:ease-out;
}
@keyframes slideup {
0%{bottom:-50px}
100%{bottom:0;}
}
<div class="container">
<div class="img">
</div>
<div class="slidemeup">
SLIDE ME UP
</div>
</div>
i used a div with class img
instead of the image. but it should work either way
Upvotes: 3