Hello, I need help to apply an effect of this web: When we pass the mouse over an image (bottle), the enlarged image appears on the left, see: [ link
I can not perform the effect on myweb when the mouse is hovered over an image and it comes out in another section to the left as in the previous web.
I have this code but I do not get it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-scrict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script
src="https://code.jquery.com/jquery-3.2.1.js"
integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE="
crossorigin="anonymous"></script>
<style type="text/css">
#id-main {
width: 100%;
height: 400px;
}
header {
width: 500px;
margin: 0px auto;
height: 500px;
float:left;
}
</style>
</head>
<header></header>
<body>
<img src="img/sparkling.png" width="400px" height="400px" onmouseover="hacer_hover()"">
<script type="text/javascript">
function hacer_hover()
{
$("header").css('background-image', 'url(img/sparkling.png)');
}
</script>
</body>
</html>