Fade in fade out on image hover using CSS3
When someone hovers over an image it will fade in and then when they unhover it fades back out.
To do this, just add the following code to your style.css file:
img { opacity: 0.6; transition: opacity 1s ease-in-out; -moz-transition: opacity 1s ease-in-out; -webkit-transition: opacity 1s ease-in-out; } img:hover { opacity: 1.0; transition: opacity .55s ease-in-out; -moz-transition: opacity .55s ease-in-out; -webkit-transition: opacity }
- WordPress Security – Why Updates and Security Measures are Crucial? - 19 March 2023
- WordCamp Poland 2023 Gliwice – WordPress user conference - 28 February 2023
- How do I restore a previous version of WordPress when an update has failed? - 9 January 2023