SolveigTraeet Posted February 14, 2021 Posted February 14, 2021 Site URL: https://caper-badger-3s6d.squarespace.com/blog/mytruth Password: home I wish to create a second image on hover over Blog Thumbnail. I want a different image to each Blog thumbnail. Can anyone help me?
tuanphan Posted February 15, 2021 Posted February 15, 2021 Add to Blog Page Header <style> .blog-basic-grid>article .image-wrapper:hover img { visibility: hidden; } .blog-basic-grid>article:nth-child(1) .image-wrapper:hover { background-image: url(https://cdn.pixabay.com/photo/2021/02/03/14/52/woman-5978200__340.jpg); background-size: cover; background-repeat: no-repeat; } .blog-basic-grid>article:nth-child(2) .image-wrapper:hover { background-image: url(https://cdn.pixabay.com/photo/2021/02/07/19/57/gazelle-5992510__340.jpg); background-size: cover; background-repeat: no-repeat; } </style> Repeat for other blog items Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.