Plugin Author
Brecht
(@brechtvds)
Hi there,
When an item is being hovered, it looks for any containers inside of that item that have the wpupg-hover class, and then adds wpupg-hovering to that container. So in the grid template editor you could add a div like that to target.
Kind regards,
Brecht
Thread Starter
Jaiji
(@jaiji)
I have this in the template (based on Hover with Date):
[wpupg-item-image default="500x999"]
<div class="wpupg-hover">
[wpupg-item-title]
[wpupg-item-excerpt]
</div>
I’ve tried adding the transition (transition: all 0.3s ease) to both .wpupg-hover and .wpupg-hovering, one at a time, no joy, the title and excerpt still appear instantly on hover. Anything obvious I’m doing wrong?
Plugin Author
Brecht
(@brechtvds)
Could you try adding some CSS like this (you will need to adjust the template selector):
.wpupg-template-test-hover .wpupg-hover {
opacity: 0;
transition: all 1s ease;
}
.wpupg-template-test-hover .wpupg-hover:hover {
opacity: 1;
}
Thread Starter
Jaiji
(@jaiji)
Thank you! I’ve added that to the Custom Code section on the settings page, all good. I’d been adding CSS directly to the template, which worked for a scale transition on the background image.
I appreciate the prompt and helpful support.