Unusual problem arises with image hover on Chrome browser

I'm currently working on an HTML/CSS website that incorporates an image magnification effect when hovering over images. Everything seems to be functioning correctly, except for one minor issue in Chrome. Upon page load, the images seem to jitter and resize briefly before settling into their normal size. Interestingly, this problem doesn't occur in other browsers or during testing in Dreamweaver. When I remove the magnification effect, the page loads smoothly as expected. Any thoughts on what could be causing this particular glitch?

Feel free to check out the page here:

Below is the HTML code snippet for the images:

<tr>
<td><a href="" class="imghover"><img src="images/leaf.jpg" alt="portrait" class="border"></a></td>
<td><a href="" class="imghover"><img src="images/DSC_2280-Edit-Edit-Final.jpg"  alt="portrait" class="border"></a></td>
<td><a href="" class="imghover"><img src="images/DSC_2685.jpg" alt="blog" class="border"></a></td>
</tr>

And here is the CSS code for the hover effect:

.imghover img{
-webkit-transition-duration: 1s; 
-moz-transition-duration: 1s; 
-o-transition-duration: 1s; 
}
.imghover img:hover{
-webkit-transform:scale(1.1);
-moz-transform:scale(1.1); 
-o-transform:scale(1.1); 
}

Answer №1

I encountered a similar problem and managed to resolve it by stumbling upon a solution at this specific website. While the fix might be considered somewhat unconventional, it does seem to do the trick. The secret lies in incorporating a subtle rotation in addition to the zoom effect.

.imghover img:hover {
    transform: scale(2) rotate(0.1deg);
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Strategies for delivering CSS exclusively to up-to-date browsers

What are some methods for serving CSS exclusively to modern browsers while displaying plain, unstyled HTML to outdated versions of Internet Explorer? I am currently employing the following approach, but I am not particularly thrilled about having my main ...

As you hover over the chosen image, the selected image will appear

I have a simple HTML code with some JavaScript where I display sets of images. All I want is for the images to pop up when hovered over, appearing in a larger size. Below is the example HTML Code: <div class="content-box-left-bootomgrid lastgrid"> ...

Angular - Customizing button bindings for various functions

As a newcomer to Angular and TypeScript, I am faced with the task of creating a customizable button that can display text, an icon, or both. For example: button-icon-text-component.html <button> TEST BUTTON </button> app.component.html & ...

The downside Div is being displaced by a Paragraph with an overflow-y:scroll property

In my Div, I have set the width and height of a paragraph along with the property overflow-y:scroll. It's working fine as the paragraph is displaying with a vertical scroll. However, it is causing displacement in the div below. Below is the HTML code ...

Get an item from within a collection of objects

I'm in the process of creating a board game, and I am looking to implement a feature where clicking on a specific location will turn it red. I have an array of divs, but I'm struggling to figure out how to target and change the color of a specifi ...

The functionality of Javascript stops working once an ajax call is made

My attempt to make an Ajax call to fetch additional data upon clicking a button was successful on the first click. However, subsequent clicks on the button do not trigger the action, and the data retrieved does not apply any JavaScript functionalities like ...

Personalized Horizontal Radio Button Design

I have been struggling to achieve the desired design for radio buttons but without success. https://i.sstatic.net/TU7Ks.png Despite using bootstrap for my website, I am only able to achieve this: https://i.sstatic.net/WbzqS.png This is the code I am cu ...

Trouble with displaying inline images using <div> tag

I am trying to display 9 images in a WordPress footer side by side horizontally. Here is the HTML code I used: <div id="sponsers"> <ul> <li><img src="http://mysite.com/image1.png" width=257 height=67></li> <li><img s ...

svg viewbox cannot be adjusted in size

Struggling with resizing an SVG to 20px by 20px. The original code size of the SVG is quite large at 0 0 35.41 35.61: <!doctype html> <html> <head> <meta charset="utf-8"> <title>SVG</title> ...

It is not possible to place the cursor before a non-contenteditable div within a contenteditable div

Here is the layout I am working with: <div contenteditable=true> /// <div contenteditable=false>not editable</div> /// </div> One problem I'm facing is that when the non-contenteditable div is the first element on a ...

Animate a CSS transition to smoothly slide a hidden div into view from the edge to the center of the

I am looking to create an animated floating div. When the div is in the 'closed' state, most of it is hidden on the right side of the screen, with only 20px still visible. Upon clicking the visible part, I want the div to move to the center of t ...

Tips for revealing a hidden HTML tag

I am currently trying to validate the content within #textd to ensure it is not empty and contains more than 150 characters. If it meets these conditions, I need to transfer the content to another webpage; otherwise, display an error message based on the c ...

When attempting to display an image from JSON data, it does not show up on my ListView item as expected

this is my json { contacts: [ { id: "c200", name: "Ravi Tamada", email: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e6c7f68775e79737f7772307d7173">[email protected]</a>", address: "xx-xx-xxxx,x - street, x - ...

`The Angular FormControl attached to the <input> element is showing [object Object]`

Utilizing Angular 7. I have an <input> element that looks like this: <input id="foo" type="text" class="bar" [formControlName]="'product'" autocomplete="off [ngModel]="formGroup.controls.product.value" [readOnly]="true"/> At one ...

Utilizing a dynamic URL to set the background image of a div element (with the help of

Currently, I am in the process of designing a user registration page that allows users to input an image URL and view a preview of the image within a designated div. The div already contains a default image set by a specific class. The HTML code for displa ...

Showing picture on grid view

I have two websites and I am attempting to retrieve images in a gridview from a database using a web service. I upload the image using fileupload on one website and then try to retrieve it on another website. The insertion of the image works fine, but the ...

Using jQuery's slideToggle feature to hide content when clicked again or when a different button is

I have a challenge with creating toggle buttons that require specific functions: 1) Display content on the first click (this is working) 2) Conceal content when another button is clicked (this is also working) 3) Hide content on the second click (this i ...

<h1> </h1> Using attributes in a JavaScript function

Hello, I am trying to figure out how to inherit the h1 style CSS inside a JavaScript function called myFunction. Currently, when the button is clicked, it just displays the default h1 style. Any help would be appreciated. Thank you! <html> <st ...

Executing a JavaScript script from a C# script: A step-by-step guide

Greetings all! I am currently engrossed in a school project that requires me to populate a paragraph element with data from a table in my database. Initially, I attempted to achieve this task using JavaScript, but due to the connection script being in C#, ...

The jQuery navbar's active class fails to function properly when an href is added

I'm facing a puzzling situation. I created a navbar using jQuery Mobile following the instructions on their official website: jQuery Mobile Navbar Demos Everything functions smoothly until I introduce href attributes in the list elements within the u ...