optimizes some css effects