category animation && maintain ratio resize