Tagged: x
-
AuthorPosts
-
August 16, 2016 at 11:29 am #1133784
MfristoffParticipantHello,
I’m trying to do an image-swap upon hover for this page: http://sensiblemicro.com/homepage-tester-1-2/
As you can see, the first few times that you hover with the mouse, it seems to glitch/flicker…
Here’s the CSS that I’m using on this page:
.my-image-class-1:hover { content: url(http://sensiblemicro.com/wp-content/uploads/2016/08/Shortages-EOL-Full-Color.png); z-index: 999; width: 100%; } .my-image-class-2:hover { content: url(http://sensiblemicro.com/wp-content/uploads/2016/08/Quality-Lab-Sensible-Micro-Color.png); z-index: 999; width: 100%; } .my-image-class-3:hover { content: url(http://sensiblemicro.com/wp-content/uploads/2016/08/Authorized-Full-Color.png); z-index: 999; width: 100%; } .my-image-class-4:hover { content: url(http://sensiblemicro.com/wp-content/uploads/2016/08/Mobile-Kiosks-Sensible-Micro.png); z-index: 999; width: 100%; } .page-id-36410 .x-section .x-container.marginless-columns .x-column.x-1-5 { width: 20% !important; float: left; }Any and all help would be greatly appreciated!
Thanks,
MikeAugust 16, 2016 at 1:01 pm #1133938
RupokMemberHi Mike,
Upon checking your site; I can’t see any flickering for the images and it’s changing smoothly as I can see.
Thanks!
August 16, 2016 at 1:06 pm #1133944
MfristoffParticipantCould you possibly try in an incognito window or in a diff browser? I’ve tried on 4 different computers now (2 on diff networks), and the problem is still persisting.
Please help!
August 16, 2016 at 2:42 pm #1134096
Nabeel AModeratorHi again,
Use background image instead and change it on hover for example:
.my-image-class-1 { background-image: url('original-image'); } .my-image-class-1:hover { background-image: url('hovered-image'); }Hope this helps!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1133784 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
