"How to style the three-dot icon image so that when the mouse hovers over it, it becomes white and the cursor changes to pointer? Is it possible to do such things for an image?"
A committed and meticulous student of computer science who is enthusiastic about software engineering, web development, and artificial intelligence. competent in creating intelligent systems, optimizing software solutions for improved performance and user experience.
Latest solutions
Testimonial Grid section using grid and flexbox
#accessibility#viteSubmitted 4 days agoConstructive feedback are welcome
Intro Component with Signup form using grid and flexbox
#accessibility#react#tailwind-css#vite#lighthouseSubmitted 9 days agoRest Countries API with theme switcher using grid, flexbox
#accessibility#framer-motion#react#tailwind-css#viteSubmitted 12 days ago
Latest comments
- @yektaakhavanWhat specific areas of your project would you like help with?@abok-cymk
You have a typo on your icon names
E.g "/icon-Social.svg" instead of "/icon-social.svg"
- @yektaakhavanWhat specific areas of your project would you like help with?
"How to style the three-dot icon image so that when the mouse hovers over it, it becomes white and the cursor changes to pointer? Is it possible to do such things for an image?"
@abok-cymk1. Changing opacity on hover
.ellipsis:is(:hover, :focus) { opacity: 0.5; }
2. Should you use it?
Yes, but here are important things to consider.
Pros
-
Simple and fast way to create a hover effect.
-
Doesn’t need extra elements or JavaScript.
-
Good for indicating interactivity (e.g., image is clickable).
Cons
-
Makes the entire image and its content transparent — even if it contains overlaid text or other elements.
-
Affects child elements' visibility, which can be a problem if your image contains other layered elements (like icons or text).
-
May not be accessible — low contrast might confuse users with visual impairments.
Alternatives you might prefer
- Instead of reducing the image's opacity, sometimes it's better to overlay a semi-transparent layer or use filters:
Option: Use filter
img:hover { filter: brightness(50%); }
-
Keeps the image visible but darkens it.
-
Can be combined with transitions for smooth effect.
Marked as helpful -