CSS Help
-
I dont know if this is the right place to post this, but I’ve tried elsewhere and cant find a solution.
What I’m trying to do is to apply some CSS which when a mouse is hovered over an image, it scrolls the image from top to bottom. You often see this for sites showing demnos.
body { margin: 0; padding: 0; } .attachment-portfolio-thumb.size-portfolio-thumb.wp-post-image { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 400px; height: 450px; background: url:(web.jpeg); background-size: cover; background-position: top; border: 5px solid #fff; box-shadow: 0 20px 30px rgba(0,0,0,.5); transition: 5s; } .attachment-portfolio-thumb.size-portfolio-thumb.wp-post-image:hover { background-position: bottom; }
This, I found on YouTube. However I cant get it to work for my site. I’m hoping someone might be able to tell me where I’m going wrong. It’s the featured image on here I’m trying to change
[short link removed by moderator]
Would appreciate anyone who can help. Thank you.
The page I need help with: [log in to see the link]
- The topic ‘CSS Help’ is closed to new replies.