elschwartzo
-
Posts
17 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Everything posted by elschwartzo
-
I've created a simple list. I've added some custom code, to make the image in the list a rollover image. The only thing I cannot figure out is how to make the rollover images transition smoothly with a CSS fade effect. Below is my code without the transition CSS.
<style>
/* Rollover images */
li:nth-child(1):hover img {
content: url(https://cdn.pixabay.com/photo/2021/12/23/13/25/flower-6889331__480.jpg);
}
li:nth-child(2):hover img {
content: url(https://cdn.pixabay.com/photo/2022/01/18/03/16/deer-6946129__340.jpg);
}
li:nth-child(3):hover img {
content: url(https://cdn.pixabay.com/photo/2018/07/16/04/43/tea-3541205__340.jpg);
}</style>
You can see the page here: https://caper-synthesizer-8pat.squarespace.com/. pass: test
Any advice on how to code the CSS transition effect here is appreciated.