Place limit, css animations

3

I came across this problem that is affecting my CSS framework.

I have such an animation on my site link

But I need it to stay inside the black bar, ie that surplus that is outside the bar should not appear ... I was using z-index to on for the rest of my site on top of that, however I got problems [..]

What solution should I apply?

    
asked by anonymous 08.12.2014 / 17:39

2 answers

3

You can use overflow , so that what comes out of the div is not shown , is hidden.

.menu {
    overflow: hidden;
}

jsFiddle: link

    
08.12.2014 / 17:43
1

Just add

overflow: hidden; 

in class .menu {}

    
08.12.2014 / 17:43