Flip an image on mouse over with CSS

Use the transform CSS property to flip an image. You can try to run the following code to flip an image on mouseover:


Live Demo

<!DOCTYPE html>
         .myimg:hover {
            transform: scaleX(-1);
      <h2>Heading One</h2>
      <p>Let's flip the image on mouse over:</p>
      <img class = "myimg" src = "https://www.tutorialspoint.com/python/images/python_data_science.jpg"
         alt = "Python Data Science" width = "300" height = "200">