programming compare module to handle animations and media queries