camhick706 Posted July 28, 2023 Share Posted July 28, 2023 I have a basic blog grid with images that I would like to have the titles on top of images rather than below. Also wondering how i can add a smooth zoom on hover https://www.crypto-terrestrial.com/ Link to comment
tuanphan Posted July 29, 2023 Share Posted July 29, 2023 You mean Initial: Show image, hide text Hover: Show text over image + zoom image a bit? 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!) Link to comment
camhick706 Posted July 29, 2023 Author Share Posted July 29, 2023 Yes but show text initially as well Link to comment
tuanphan Posted July 31, 2023 Share Posted July 31, 2023 On 7/29/2023 at 10:18 PM, camhick706 said: Yes but show text initially as well So the effect will be Initial: Show image, show text over image Hover: Show image, show text over image + zoom image a bit? Is that right? Add to Design > Custom CSS /* Blig List - Hover Effect */ .blog-basic-grid--text { position: absolute; top: 50%; left: 50%; text-align: center; transform: translate(-50%,-50%); opacity: 1; transition: all 0.3s; } article.blog-basic-grid--container.entry.blog-item{ position: relative !important; transform: unset !important; } article.blog-basic-grid--container.entry.blog-item:hover img { transform: scale(1.2); transition: all 0.3s ease; } img { transition: all 0.3s ease; } 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!) Link to comment
camhick706 Posted July 31, 2023 Author Share Posted July 31, 2023 That's essentially what I'm going for but is it also possible to left align the text anchored to the bottom left corner of the image like in this screenshot?- Also trying to add a black gradient at the bottom of the image to make the text stand out Link to comment
tuanphan Posted August 3, 2023 Share Posted August 3, 2023 Try this new code /* Blig List - Hover Effect */ .blog-basic-grid--text { position: absolute; left: 10px; bottom: 10px; text-align: left; opacity: 1; transition: all 0.3s; background-color: rgba(0,0,0,0.5) } article.blog-basic-grid--container.entry.blog-item{ position: relative !important; transform: unset !important; } article.blog-basic-grid--container.entry.blog-item:hover img { transform: scale(1.2); transition: all 0.3s ease; } img { transition: all 0.3s ease; } 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!) Link to comment
camhick706 Posted August 4, 2023 Author Share Posted August 4, 2023 This is what I am getting here- the gradient doesnt span the full width of the image. I'd also like it to go a bit higher than the text itself if possible Link to comment
tuanphan Posted August 6, 2023 Share Posted August 6, 2023 On 8/4/2023 at 8:31 AM, camhick706 said: This is what I am getting here- the gradient doesnt span the full width of the image. I'd also like it to go a bit higher than the text itself if possible Use this new code /* Blig List - Hover Effect */ .blog-basic-grid--text { position: absolute; left: 0; bottom: 0; right: 0; text-align: left; opacity: 1; transition: all 0.3s; background-color: rgba(0,0,0,0.5); width: 100% !important; } .blog-basic-grid--text>* { padding-bottom: 10px; padding-left: 10px; } article.blog-basic-grid--container.entry.blog-item{ position: relative !important; transform: unset !important; } article.blog-basic-grid--container.entry.blog-item:hover img { transform: scale(1.2); transition: all 0.3s ease; } img { transition: all 0.3s ease; } 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!) Link to comment
camhick706 Posted August 6, 2023 Author Share Posted August 6, 2023 That did it thank you so much! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment