CSS से इमेज को फ्लिप करने का कोड निम्नलिखित है:
उदाहरण
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> img:hover { transform: scaleX(-1); width: 400; height: 400; } </style> </head> <body> <h1>Flipping an Image Example</h1> <img src="https://i.picsum.photos/id/551/400/400.jpg"> <h1>Hover over the above image to see it mirrored</h1> </body> </html>आउटपुट
उपरोक्त कोड निम्नलिखित आउटपुट उत्पन्न करेगा:

इमेज पर होवर करने पर यह नीचे दिखाए अनुसार मिरर होगी:
