- Posts: 8
COMMUNITY FORUM
hover an image over item image
- tomo
-
Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Then with some css place the transparency right above the image.
You can ask your template developer/provider in order to help you with this.
Don't forget to use the K2 template overrides in order to make the modification required in the item.php file or the category_item.php file.
Please Log in or Create an account to join the conversation.
- tomo
-
Topic Author
- Offline
- New Member
- Posts: 8
Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Then all else should be made with CSS.
Add to .itemImageBlock a, a position:relative;
and the css for the hoverImg
.itemImageBlock a span.hoverImg {opacity:0; width:100%; height:100%; display:block; position:absolute;top:0;left:0;background:#000;}
.itemImageBlock a:hover span.hoverImg {opacity:0.4;}
If you want to remove the current effect from your image, remove the css
.itemImageBlock:hover img{
-webkit-transform:scale(1.06);
-moz-transform:scale(1.06);
-ms-transform:scale(1.06);
-o-transform:scale(1.06);
transform:scale(1.06);}
Please Log in or Create an account to join the conversation.
- tomo
-
Topic Author
- Offline
- New Member
- Posts: 8
One last problem I have is it works on individual item page - but not on the category list... any ideas where I'd put <span class="hoverImg"></span> ??
Thank you for your help!
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- tomo
-
Topic Author
- Offline
- New Member
- Posts: 8
Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- tomo
-
Topic Author
- Offline
- New Member
- Posts: 8
Thank you for all your help!
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- tomo
-
Topic Author
- Offline
- New Member
- Posts: 8
Thanks!
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- tomo
-
Topic Author
- Offline
- New Member
- Posts: 8
Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Do you have it on the live site so I can check it out?
Please Log in or Create an account to join the conversation.
- tomo
-
Topic Author
- Offline
- New Member
- Posts: 8
Its all sorted thank you for your support and help on this
Much appreciated!
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.