Знаете ли вы, почему z-index не работает с ::before, когда я анимирую родителя?
Здесь вы можете найти то, что я имею в виду: http://jsfiddle.net/8x3Wa/6/
.object {
position: relative;
z-index: 1;
-webkit-animation: scale 1s infinite ease-in-out;
animation: scale 1s infinite ease-in-out;
}
.object::before {
content: "";
position: absolute;
z-index: -1;
}