separted animation and media queries