다음은 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> 출력
위의 코드는 다음과 같은 출력을 생성합니다 -

이미지를 가리키면 이미지가 다음과 같이 미러링됩니다 -
