E-commerce website

Please how can I make this type of color when hovering on this image?
No description
34 Replies
xel
xel2y ago
is that a live site you can link ?
nwankwojoseph_
nwankwojoseph_OP2y ago
No,,I’m still working on it.
xel
xel2y ago
so what do you mean "this type of color" ?
nwankwojoseph_
nwankwojoseph_OP2y ago
I meant,what do I do to make that happen when hovering on the image.
xel
xel2y ago
make what happen the border ?
nwankwojoseph_
nwankwojoseph_OP2y ago
I’ve done the border already,I mean the background thats on the image when hovering.
xel
xel2y ago
how can you tell there is a "background on the image" ? what happens exactly when you hover ?
nwankwojoseph_
nwankwojoseph_OP2y ago
This is the normal state.
No description
xel
xel2y ago
ok so it gets brighter
nwankwojoseph_
nwankwojoseph_OP2y ago
It’s brighter on the normal state.
xel
xel2y ago
to set hover styles you use the hover pseudoclass: https://developer.mozilla.org/en-US/docs/Web/CSS/:hover to make it brighter you could do something like opacity https://codepen.io/Xe11o/pen/BavyxZa could also do filter: brightness(150%); or some othe other techniques here https://stackoverflow.com/questions/16178382/css-lighten-an-element-on-hover
nwankwojoseph_
nwankwojoseph_OP2y ago
I’m not trying to make it brighter.
Tenkes
Tenkes2y ago
You need to explain what you're trying to do. We can't see much since it's low quality image taken by phone. Maybe send a screenshot? If you're on Win10 you can use Ctrl+Shift+S to use snipping tool. All I can see is it gets border and it gets brighter. You already added border and you're not trying to make it brighter. What are you trying to achieve?
nwankwojoseph_
nwankwojoseph_OP2y ago
Okay This is the image at normal state.
nwankwojoseph_
nwankwojoseph_OP2y ago
No description
nwankwojoseph_
nwankwojoseph_OP2y ago
And this is the image when you hover on it.
nwankwojoseph_
nwankwojoseph_OP2y ago
No description
snxxwyy
snxxwyy2y ago
@nwankwojoseph_ you can do it with a pseudo element- https://codepen.io/deerCabin/pen/YzdPvwz
nwankwojoseph_
nwankwojoseph_OP2y ago
You’re valid ✅ ….thanks 🙏☺️
snxxwyy
snxxwyy2y ago
no worries, added your border thing too.
nwankwojoseph_
nwankwojoseph_OP2y ago
I made use of outline not border. I
snxxwyy
snxxwyy2y ago
that's what i did.
nwankwojoseph_
nwankwojoseph_OP2y ago
Okay.thanks once again man🤝
snxxwyy
snxxwyy2y ago
no problem 🤝
nwankwojoseph_
nwankwojoseph_OP2y ago
I don’t know how to change the tag 🤦‍♂️
snxxwyy
snxxwyy2y ago
there may be a better way of doing it but that's what came to mind, perhaps someone else who comes along that has a better solution can improve it.
nwankwojoseph_
nwankwojoseph_OP2y ago
Okay bro 🤝
snxxwyy
snxxwyy2y ago
what tag?
Tenkes
Tenkes2y ago
Click three dots on top-right, should be option to edit them there
nwankwojoseph_
nwankwojoseph_OP2y ago
Can’t find any dot. 😢
Tenkes
Tenkes2y ago
No description
nwankwojoseph_
nwankwojoseph_OP2y ago
its not showing
Jochem
Jochem2y ago
You have to hold on the topic in the channel list on mobile. I've added the solved tag for you now
nwankwojoseph_
nwankwojoseph_OP2y ago
thanks..done

Did you find this page helpful?