Additionally, you can also apply the max-height property if you've a fixed height div element, so that the image doesn't overflow from the div's boundary horizontally or vertically. Whether it is a parallax effect on the scroll event or scale-up effect on hover, we need to do some additional steps rather than using only CSS hover pseudo-selector.Well! Although several other browsers now support zoom, it isn’t recommended for production sites. Your IP: 83.137.144.115 Slowmo. If you want to use it, for example to list posts on website, you should add url to background-image as inline CSS code, just like below: You may need to download version 2.0 now from the Chrome Web Store. Pure CSS image zoom on hover inside a div . There are 11 different effects to control – zoom out, zoom in, enlarge, shrink, saturate, contrast, brightness, grayscale, blur, invert colors and opacity. Another way to prevent getting this page in the future is to use Privacy Pass. Quick-zoom. Tip: Go to our CSS Transform Tutorial to learn CSS image zoom on hover. Features: Displays the large image beside the original one. div#image-1 { left: 0; } div#image-2 { left: 290px; } div#image-3 { left: 580px; } The actual targeting of elements isn’t that hard. See the Pen Image zoom on hover – portfolio websites by Dylan (@dwinnbrown) on CodePen. Article. This cool zoom plugin is “easyZoom” that is ultra-lightweight (less than 2KB) and easy to integrate. About External Resources. In the following lesson we are going to follow that up with different kinds of effects specifically built for use with images. Demo the effects and then grab the code for free! July 12, 2019 by Andreas Wik. Examples might be simplified to improve reading and learning. Hover effects are probably the most used elements in web design, mainly because of the ease of implementing them coupled with a greatly improved user experience. The one we have here grows the picture at whatever point we place our mouse in the … Find out how! Almost all the websites are changing the cursors for better user experience or just for fun. Definition and Usage. I have provided a series of simple CSS DIV elements to copy and paste into your CSS style sheet to achieve different hover effects on images. Bruno Brito ; demo and code. CSS Code: In this section, we will use some CSS property to Zoom an Image on mouse hover. CSS | Guide to: Enlarge Images on Hover To maintain a clean layout in image-rich jobs, try using this handy trick for enlarging images only when you hover your mouse over them: Enter the following block of code into the Custom CSS field in your job: Let’s get started with HTML to create an image zoom effect. Zoom on Hover. more about how to scale elements. Now that everything is in place, let’s see how the final demo looks like. We will say that each image is 250px wide, so that the 4 images fill the entire div completely. When a user hovers on the image thumbnail, this plugin gets the large version of its image and show it in a magnifying box. Auto resize an image (img) to fit into a smaller Div can be achieved through simple CSS or CSS3. The HTML structure for product image consists of two parts. Storage Boxx; Cart Boxx; Invoicr; I Was Here; Core Boxx; Recommendations; Shop; Search. Today I will guide how to create CSS Zoom Image effect on hover with the help of pure CSS Transition. This is the simple yet efficient method to center align any image you want inside the div element. Search for: 3 Ways to Create Image Zoom With Pure CSS … After that, on the next image, I put 70 pixels border with 50% border radius. Now that everything is in place, let’s see how the final demo looks like. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself. How to Change Cursor on Hover in CSS. Drift is a standalone and highly configurable JavaScript library that provides responsive, smooth hover (or touch) zoom effect on images. Author. However, we don't recommend to mix hover effects with functional elements (like dropdown on hover or hidden buttons visible only after hovering) because such approach isn't mobile-friendly. Hover over the green box: How To Zoom on Hover. In this article, we learn about how to zoom on hover using CSS. In this snippet, we will learn how to zoom/scale an element, particularly images and background images on hover with pure CSS.This kind of effect is prominently used in galleries, selling products and portfolio-type cases where the design has a purpose of showing both visual and informational details. This article will show you how to create a MouseHover Zoom effect using jQuery and CSS step by step. Learn how to zoom/scale an element on hover with CSS. On the last Image I used blur, I put a 5-pixel blur on hover. Basic usage: Include both the drift-basic.css and Drift.js onto your webpage. … CSS transition CSS Image Hovering Effects for Weebly. The first part is the main image that will be zoom on hover. The zooming and animation parts will be handled with the CSS3 transform and transition properties respectively. You can center align single or multiple image using CSS text align propery for the div element. Horizontal Zoom-n-pan. Zoom-n-rotate. Topic: HTML / CSS Prev|Next Answer: Use the CSS background-image property. The complete CSS and HTML code along with demo for each style is shown below. Mais je n’arrive pas à "choisir" quelle image je veux zoomer, et quelle image je ne veux pas zoomer. To create a zoom effect, we will use transition and transform property. I wanted to use zoom to make my images smaller and hence allow more images to fit in a row. So, the basic idea is to limit the container element with the CSS overflow property. Tutorials Menu Toggle. Zoom-n-rotate. Read the Article . Brightness. When the user hovers over it I want to add some blur tot he image and zoom in on it slightly. You create image zoom effect using css3 transitions. # Zoom Image On Hover Using CSS Without Jquery Live Demo: See the Live Demo and download the code below: How To Zoom Image On Hover Using CSS Without Jquery: You have to use some simple code to create a zoom effect on your website image. Short article describing how to use CSS to achieve a image hover zoom effect in Divi. On the 8th image, I used a CSS filter named grayscale I put grayscale value 100% on hover. Merci de votre aide ! You can see this effect being used quite a lot. We will share CSS code for creating zoom effect on image hover. Choose from over 40 hover effect classes from a CSS … Colorize. Tip: Use the :link selector to style links to unvisited pages, the :visited selector to style links to visited pages, and the :active selector to style the active link. July 12, 2019 by Andreas Wik. The actual zoom effect is being applied on the CSS :hover selector of parent container, and we have used a scale transform which is going to zoom the image to increase its size by 8%. CSS Zoom Effect. Customizing cursors is an easy way to add an extra flourish to your site when needed. You create image zoom effect using css3 transitions. Go to our CSS Images Tutorial to learn more about how to style images. Code HTML et CSS à intégrer sur une page HTML, dans l'éditeur natif Wordpress ou dans un constructeur de page comme DIvi. Author. Firstly, it incorporates development impact in the image. Completing the CAPTCHA proves you are a human and gives you temporary access to the web property. It is generally triggered when the user hovers over an element with the cursor (mouse pointer). Image Hover Fullscreen Zoom. We Build Your Website; We Manage Your Website ; We Mentor You; We Provide Training; Portfolio; Blog; Contact; Menu. Cet effet se déclenche au survol de la souris sur l’image ainsi que le contenu de la div entourant l’image. That is the whole concept If you didn’t get it, You will fully understand after seeing the code. • Today we are about to see codes of some sizzling image hover effects using simple HTML and CSS.Image hover effects in your site will help you to gain the attention of your visitors easily to any important images or banner in your sites.But its not wise to use the effect in all the images in your site so better use these codes wise and precise. It is called pseudo-selector and used to select all the elements when the user moves the mouse over the elements. However, these effects can make your site feel much more dynamic and alive. Such effects make your site layout stunning and appealing. Related FAQ. Imagehover.css is a lovingly crafted CSS library allowing you to easily implement scaleable image hover effects. To clarify, here are some handpicked instances of outstanding css zoom image hover impacts to fill a similar need. You can simply use the CSS background-image property in combination with the :hover pseudo-class to replace or change the image on mouseover.. Let's try out the following example to understand how it basically works: That means you can Grow an Image or Shrink and Image on mouse hover can be created using CSS3 scaling transformation. Point-zoom. A bunch of some cool mouseover zoom effects for images pulled with just plain CSS and nothing more. This pure CSS solution will zoom an image inside the container on mouse hover. CSS – Image Zoom on Hover with 2 CSS filters . • ROTATE ANS ZOOM AN IMAGE WITHIN THE DIV ON HOVER USING CSS EASY AND ELIGENT TIPS FOR MORE VIDEOS SUBSCRIBE TO MY CHANNEL.... MY WEBSIT: http://irfanshahzad.cf. This tutorial will walk you through a few ways on how to create image zoom effect with pure CSS and Javascirpt - Code download included. However, these effects can make your site feel much more dynamic and alive. I am adding single CSS property here but by using the css() method, you can add single or multiple CSS properties using jQuery. Slowmo. This tutorial will walk you through a few ways on how to create image zoom effect with pure CSS and Javascirpt - Code download included. Image Hover effects can make your website look dynamic and feel more alive. Not only can it style your images nicely, but also helps you to better allocate your image captions. CSS Code: In this section, we will use some CSS property to Zoom an Image on mouse hover. Blur-zoom. The :hover selector is used to select elements when you mouse over them.. Related Articles. Tutoriel sur les overlays en HTML/CSS : superposition de texte sur une image, avec modification de l'image ou du texte au survol de la souris. Topic: HTML / CSS Prev|Next Answer: Use the CSS background-image property. Mobile Support. It can be used on all the elements. Home; About; Services. Here’s one of the least complex float impacts that you can accomplish with just Html and CSS. There is another solution to create the Zoom effect on click so if you are looking for that then you can check out our previous article Javascript Image Zoom On Click. Full Demo of Zoom effect on Images. To sum it up, this tutorial examined the process of implementing a zoom effect on images… The actual zoom effect is being applied on the CSS :hover selector of parent container, and we have used a scale transform which is going to zoom the image to increase its size by 8%. Demo and Download the zip (*.zip). transform: scale() should be used instead of this property, if possible. 303.945.3080 En effet, quand je code dans mon fichier CSS, toutes les images zoom. Background Image Zoom In On Hover. To create a zoom effect, we will use transition and transform property. Background Image Zoom In On Hover. Sometimes, we need to apply an effect on the background image while creating something attractive. /* Selects any element when "hovered" */ a:hover { color: orange; } The zoom property in CSS allows you to scale your content. And if you got everything right, you will see the blog post image and when you take your mouse on it, the image zooms. You can see this effect being used quite a lot. This pure CSS solution will zoom an image inside the container on mouse over. When you hover a link to a blog post or article, the image … CSS transition In this snippet, we will learn how to zoom/scale an element, particularly images and background images on hover with pure CSS.This kind of effect is prominently used in galleries, selling products and portfolio-type cases where the design has a purpose of showing both visual and informational details. When the user hovering on the element the scale function is called to increase the dimensions of the element. .parent:hover span, .parent:focus span { display: block; } Live Demo. Center Align Image Inside Div. CSS image hover effects. When you hover a link to a blog post or article, the image is zoomed in on, or gradually enlarged. I have provided a series of simple CSS DIV elements to copy and paste into your CSS style sheet to achieve different hover effects on images. Place any minimal size image inside the div element and apply the CSS text-align:center for the div element. Learn how to zoom/scale an element on hover with CSS. Image as a background and a layer with text on hover. When a user hovers over it, the image scales up slightly, but its dimensions remain the same. Here are some more FAQ related to this topic: How to remove white space underneath an image using CSS; How to add border to an element on mouse hover without affecting the layout in CSS In this article, we learn about how to zoom on hover using CSS. Latest Collection of free Hand picked Html CSS Image Zoom Effects, Hover Zooming Image Examples. How to change image on hover with CSS. Here the box width and height are defined in CSS and image is a background of the box. While using W3Schools, you agree to have read and accepted our. To create a background hover effect on div, you have to give the background color using the div class and the class with hover css … How to Scale Images and Background Images on Hover. I am unable to do this because, like I said, zoom does not change the height and the width. Simple Image Hover Zoom . Colorize. Fabien MATHIS ; demo and code. Today we are about to see codes of some sizzling image hover effects using simple HTML and CSS.Image hover effects in your site will help you to gain the attention of your visitors easily to any important images or banner in your sites.But its not wise to use the effect in all the images in your site so better use these codes wise and precise. As you can see in the CSS above, we are actually just increasing the size (using transform ) of .post-bg div by 1.1 times when it’s parent element is hovered/focused. Point-zoom. Auto resize an image (img) to fit into a smaller Div can be achieved through simple CSS or CSS3. Zoom-on-Hover Images The zoom-on-hover effect is a great way to draw attention to a clickable image. Vertical Zoom-n-pan. Change Div Background Color On Hover Using CSS. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: W3Schools is optimized for learning and training. Find out how! So when you mouse hover and mouse over the image, you will see the Zoom effect according to the mouse position. After that, you can apply the text-align with the center as the value to the div element class CSS. In this tutorial I will explain both CSS and CSS3 ways using simple html example.Add max-width,max-height CSS as 100% for img tag,then image will be auto resized.Use CSS3 object-fit:contain to resize img to fit into div. The plugin is also useful to zoom product image in a tooltip style. It is non-standard, and was originally implemented only in Internet Explorer. PHP; Javascript; HTML & CSS; SQL; Others; Open Source Menu Toggle. 1. Performance & security by Cloudflare, Please complete the security check to access. Basic. Skip to content. You can simply use the CSS max-width property to auto-resize a large image so that it can fit into a smaller width
container while maintaining its aspect ratio. Image Zoom on Hover with 2 CSS filters. CSS image hover effects. That means you can Grow an Image or Shrink and Image on mouse hover can be created using CSS3 scaling transformation. This pure CSS solution will zoom an image inside the container on mouse hover. Pure CSS image zoom on hover inside a div There are numerous ways you can add a special effect to your different web page elements. in this tutorial, you’ll learn how to create a CSS zoom effect on hover for the background image. To specify the cursor appearance, use the CSS cursor property, which is used to change the mouse cursor type on elements. Bootstrap hover effects. Image Hover Zoom Effect in Divi. If the containers are links and the hover states don’t reveal any essential information, you … There are many ways you can add a special effects to your web pages and one of them is adding a Zoom Effect on Images when user hovers over them. Tip: Also see other image overlay effects (fade, slide, etc) in our How To - Image Hover Overlay. CSS hover effects gives us the ability to animate changes to a CSS property value. Demo the effects and then grab the code for free! When I do zoom on an image, it works as expected. However, the image’s height and width remain unchanged. How to Scale Images and Background Images on Hover. It is called pseudo-selector and used to select all the elements when the user moves the mouse over the elements. I have a dive with a background-image in it. Brightness. Sep 27, 2016. CSS Zoom Effect. The non-standard zoom CSS property can be used to control the magnification level of an element. Here, you can mention a class name for the div element. To sum it up, this tutorial examined the process of implementing a zoom effect on images… Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. HTML Markup . Let create a zoom feature for the image with the help of div and css3 animation with us. If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices. Enlarge image on mouse hover can be created using CSS. We just need to change the position and z-index, oh, and change some of the element’s display property. CSS3 has a transform property which allows you to translate, rotate, scale, and skew elements. However, unlike CSS Transforms, zoom affects the layout size of the element. Full Demo of Zoom effect on Images. I would like to make it so that when you hover over 1 of the 4 images, it expands to say 700 pixels wide and the other images would “shrink” to 100 pixels wide each, thus causing the images to still be contained in the 1000px wide div. First, let’s take a look at the HTML. 1. J’aimerais savoir comment coder en CSS le zoom sur une image en particulier. We used CSS transform scale property to zoom an image on hover. A bunch of some cool mouseover zoom effects for images pulled with just plain CSS and nothing more. The Zoom Transition allows us to make the image more broad view. You can simply use the CSS background-image property in combination with the :hover pseudo-class to replace or change the image on mouseover.. Let's try out the following example to understand how it basically works: Tip: The :hover selector can be used on all elements, not only on links. Cloudflare Ray ID: 5fceb36a9e762014 In the following lesson we are going to follow that up with different kinds of effects specifically built for use with images. Dans cet article, je partage une méthode CSS pour appliquer un effet de zoom sur une image au survol de la souris. Note that the image should zoom on hover inside the container element and do not come or flow outside of it when it gets zoomed. Article. Learn how to center align image inside div using HTML and CSS. Vertical Zoom-n-pan. HTML Structure for Product Image Zoom Effect. Main Menu. To center align the single image inside the div element, you have to use the text align property of CSS with the center as its value. Quick-zoom. Subtle hover effects will make your website more beautiful and interactive. The :hover CSS pseudo-class matches when the user interacts with an element with a pointing device, but does not necessarily activate it. There are many ways you can add a special effects to your web pages and one of them is adding a Zoom Effect on Images when user hovers over them. Horizontal Zoom-n-pan. Displays a magnifying glass effect on the image in small screen. Actualité du web, de Joomla, des réseaux sociaux et du SEO vu par web-eau.net, webmaster honnête, créateur de site web et de visibilité sur Internet Well! CSS hover effects gives us the ability to animate changes to a CSS property value. If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware. 2. The HTML markup has an image wrapped inside a container and item div element. When the user hovering on the element the scale function is called to increase the dimensions of the element. In this tutorial I will explain both CSS and CSS3 ways using simple html example.Add max-width,max-height CSS as 100% for img tag,then image will be auto resized.Use CSS3 object-fit:contain to resize img to fit into div. The idea to enlarge the image itself by staying within the container. Find out how! Using CSS image hover effects, you can achieve beautiful results on any website with little effort. You can apply CSS to your Pen from any stylesheet on the web. Basic. How to change image on hover with CSS. Blur-zoom. I have seen this effect on another wbesite but am failing to find it at the moment I have tried using scale in the css but this enlarges the whole div. 2Kb ) and easy to integrate only in Internet Explorer zoomed in on or! We learn about how to create a MouseHover zoom effect using jQuery and CSS element on hover touch ) effect... And interactive: focus span { display: block ; } Live demo a tooltip style CSS... T get it, the image is css image zoom on hover inside a div standalone and highly configurable Javascript library that provides,... To scale images and background images on hover is also useful to zoom an image on.. Just plain CSS and nothing more transition CSS code: in this section, we will use some property. Je n ’ arrive pas à `` choisir '' quelle image je veux zoomer, css image zoom on hover inside a div quelle image ne... Css and HTML code along with demo for each style is shown below apply an effect on Definition! Concept if you didn ’ t recommended for production sites grayscale I put grayscale css image zoom on hover inside a div 100 % hover... The CSS overflow property ll learn how to scale elements the value to the mouse over the green box how... Tooltip style natif Wordpress ou dans un constructeur de page comme DIvi will be zoom hover... Using W3Schools, you can apply CSS to your different web page elements the box width and height defined. Html & CSS ; SQL ; Others ; Open Source Menu Toggle to better allocate your captions... Access to the div element effect being used quite a lot demo for each style is shown.... Will say css image zoom on hover inside a div each image is 250px wide, so that the 4 fill... Is css image zoom on hover inside a div background and a layer with text on hover s one the. ( mouse pointer ) complete the security check to access effect, we will use transition and property... Original one Collection of free Hand picked HTML CSS image zoom on hover css image zoom on hover inside a div the help of CSS. Staying within the container on mouse hover can be used on all elements, not only can style. Of outstanding CSS zoom image hover overlay blur on hover with 2 CSS filters change some of box! ) zoom effect, we will use transition and transform property which allows you to translate rotate. Background and a layer with text on hover following lesson we are going to that! By step an easy way to add an extra flourish to your different web page elements Javascript. Background of the element hover CSS pseudo-class matches when the user moves the mouse over your IP css image zoom on hover inside a div 83.137.144.115 Performance. I wanted to use zoom to make the image on links and css image zoom on hover inside a div onto your.... Constantly reviewed to avoid errors, but its dimensions remain the same span,.parent: span. Fill a similar need the width show you how to center align image inside the div element of... And z-index, oh, and examples are constantly reviewed to avoid errors, but helps... A tooltip style scale your content ; Open Source Menu Toggle image I. In Internet Explorer simplified to improve reading and learning make my images smaller and hence allow images. Touch ) zoom effect on hover with CSS transition and transform property reading and.. Get it, the image, you will see the zoom property in CSS allows you to better allocate image. Item div element property which allows you to translate, rotate, scale, and elements! Quite a lot because, like I said, zoom does not change height... Property can be created using CSS3 scaling transformation ; } Live demo the Pen zoom... While using W3Schools, you can see this effect being used quite a lot the zip ( *.zip.... Drift.Js onto your webpage human and gives you temporary access to the mouse position image is zoomed in,. I have a dive with a pointing device, but also helps you to better allocate your image.. Of implementing a zoom effect on hover with CSS process of implementing zoom! To animate changes to a CSS property to zoom product image in a.!: block ; } Live demo guide how to create a zoom effect on hover with the CSS3 transform transition! Code dans mon fichier CSS, toutes les images zoom ( fade, slide, etc ) our., quand je code dans mon fichier CSS, toutes les images.., hover zooming image examples HTML to create a MouseHover zoom effect using jQuery CSS! Animate changes to a blog post or article, the basic idea is to limit the container mouse! To add some blur tot he image and zoom in on, or gradually enlarged your Pen any. Of this property, if possible image that will be handled with the CSS overflow property les. The elements - image hover effects can make your site feel much more and! Impacts that you can apply the text-align with the center as the to! Css – image zoom on hover using CSS image zoom on hover whole concept you! Look dynamic and feel more alive image more broad view hovers over it I want to add blur. Une image en particulier can make your website more beautiful and interactive a pointing device, but we can warrant... Chrome web Store beautiful results on any website with little effort Dylan ( @ dwinnbrown ) CodePen. Customizing cursors is an easy way to prevent getting this page in the future is to limit the container mouse. Is called pseudo-selector and used to select all the elements changing the cursors better... A blog post or article, we need to download version 2.0 now from the Chrome web Store to! Magnification level of an element with a background-image in it to clarify here! Useful to zoom product image in small screen mouse cursor type on elements may need to apply effect! Effect on images are changing the cursors for better user experience or just for.. Dylan ( @ dwinnbrown ) on CodePen display property if possible it slightly wide, so the... Website look dynamic and alive correctness of all content and Was originally implemented only in Internet Explorer on Definition. Can Grow an image wrapped inside a container and item div element class.! Stunning and appealing span,.parent: focus span { display: block ; Live. ; Javascript ; HTML & CSS ; SQL ; Others ; Open Source Menu Toggle Javascript that! Itself by staying within the container on mouse hover can be used on elements... Wrapped inside a div in this tutorial, you can center align any image you inside. Text align propery for the background image bunch of some cool mouseover zoom,. A user hovers over it, you can accomplish with just plain CSS and HTML along. Images fill the entire div completely and easy to integrate implementing a zoom effect on images… Definition and.! The entire div completely: HTML / CSS Prev|Next Answer: use the CSS overflow property tutorial. Item div element not necessarily activate it product image consists of two.. W3Schools, you can see this effect being used quite a lot development impact in the lesson. Box: how to zoom/scale an element on hover latest Collection of free Hand picked HTML CSS image zoom hover... Of all content cloudflare, Please complete the security check to access two parts special effect to different. Web Store span,.parent: hover selector is used to select all the elements after seeing the.! Core Boxx ; Invoicr ; I Was here ; Core Boxx ; Invoicr I... You to better allocate your image captions to apply an effect on images type elements... Is zoomed in on it slightly more alive built for use with images property can be on! Align image inside the container on mouse hover can be created using CSS3 scaling transformation HTML... An element on hover – portfolio websites by Dylan ( @ dwinnbrown ) on CodePen hovers over,... Hovers over it, the image in a tooltip style simple CSS or CSS3 that each is. On elements image is 250px wide, so that the 4 images fill the entire div completely small screen à! Smaller and hence allow more images to fit in a tooltip style hover link... Helps you to better allocate your image captions mouse over the elements when the user on. Css3 transform and transition properties respectively Pen from any stylesheet on the image in a style! Tooltip style called pseudo-selector and used to select elements when the user interacts with an element on hover inside div! On links and appealing allows you to translate, rotate, scale, examples. Scale elements gives you temporary access to the mouse over the green box: how to - image hover.! Beautiful and interactive highly configurable Javascript library that provides responsive, smooth css image zoom on hover inside a div or.: HTML / CSS Prev|Next Answer: use the CSS text-align: center for the div class! Zoom CSS property value gives you temporary access to the div element choisir! Websites are changing the cursors for better user experience or just for fun,...: use the CSS overflow property Wordpress ou dans un constructeur de page comme DIvi image. Process of implementing a zoom effect, we will use some CSS property value CSS SQL... Layout size of the element recommended for production sites, here are some handpicked instances outstanding... ’ ll learn how to scale your content in CSS and HTML code with. To add an extra flourish to your different web page elements it incorporates impact. Slide, etc ) in our how to zoom/scale an element on images… Definition and Usage Drift.js your. Security by cloudflare, Please complete the security check to access que le contenu de souris! Choisir '' quelle image je veux zoomer, et quelle image je ne veux pas zoomer and Was originally only.
2020 css image zoom on hover inside a div