<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hide React on Image</title>
<style>
.react {
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 10px;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="container">
<img src="your-image.jpg" alt="Your Image">
<div class="react">React</div>
</div>
<script>
const image = document.querySelector('img');
const react = document.querySelector('.react');
function hideReact() {
react.style.display = 'none';
}
function showReact() {
react.style.display = 'block';
}
image.addEventListener('mouseover', showReact);
image.addEventListener('mouseout', hideReact);
</script>
</body>
</html>