Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to set opacity-50 to normal color when you hover it

I’m trying to set opacity to normal color when you hover it.
Here’s what I’ve tried.

<p class="opacity-50 hover:text-black">Test</p>

I’ve tried the code above but it didn’t work.
Is there any way to do it?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try changing the opacity to 100 on hover like this:

<p class="opacity-50 text-black hover:opacity-100">Test</p>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading