using transform scale with after css code example Example 1: css scale transform: scale(sx,sy); Example 2: css scale scale(sx) scale(sx, sy)