Hover on simple Images
-
Try this:
.img .caption{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } -
-
Try this simple....Image Hover Sample
Dell
-
hey, you can do this with custom css!
.img img{ transition: all 300ms ease; } .img:hover img{ filter: brightness(0.9); } .img .caption{ opacity: 0; transition: opacity 300ms ease; } .img:hover .caption{ opacity: 1; }Css is not so hard to do! There are little video courses about it like the one I recommend on khan university in the documentation section "custom css"
@arminunruh said in Hover on simple Images:
hey, you can do this with custom css!
.img img{ transition: all 300ms ease; } .img:hover img{ filter: brightness(0.9); } .img .caption{ opacity: 0; transition: opacity 300ms ease; } .img:hover .caption{ opacity: 1; }Css is not so hard to do! There are little video courses about it like the one I recommend on khan university in the documentation section "custom css"
Hi Armin,
Is there a way to modify this CSS so that it only applies to the images on a page that contain links (rather than all images)?
Thanks!
Norman -
Dear @Organstudio
that should work:
.img a img{ transition: all 300ms ease; } .img:hover a img{ filter: brightness(0.9); } .img a .caption{ opacity: 0; transition: opacity 300ms ease; } .img:hover a .caption{ opacity: 1; }Let me know!
Marius
-
Dear @Organstudio
that should work:
.img a img{ transition: all 300ms ease; } .img:hover a img{ filter: brightness(0.9); } .img a .caption{ opacity: 0; transition: opacity 300ms ease; } .img:hover a .caption{ opacity: 1; }Let me know!
Marius
@mariusjopen said in Hover on simple Images:
.img a img{
transition: all 300ms ease;
}.img:hover a img{
filter: brightness(0.9);
}.img a .caption{
opacity: 0;
transition: opacity 300ms ease;
}.img:hover a .caption{
opacity: 1;
}Thanks Marius – works perfectly!
-
Glad to hear!
-
@arminunruh said in Hover on simple Images:
.img img{
transition: all 300ms ease;
}.img:hover img{
filter: brightness(0.9);
}.img .caption{
opacity: 0;
transition: opacity 300ms ease;
}.img:hover .caption{
opacity: 1;
}Hello Armin
This post is just what I am looking for, but there is something that I am not doing in the right way. I add the code to my Custom CSS and something is working because when I put the mouse over I can see the darkening of the image but I can not see the caption. Tha code that I put is:
.img img{ transition: all 300ms ease; } .img:hover img{ filter: brightness(0.9); } .img .caption{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .img:hover .caption{ opacity: 1; }The only thing that I need is to see the caption over the image at the center of the photo that is not a project thumbail. This one, for example is in a Category and inside a project too. The darkening works in every situation but I can not see the caption.
Thanks!
-
-
-
Dear @Subliner
can you tell we which image you want to have the effect applied to and which piece of text you want to appear in it?Best!
Marius
-
-
-
Dear @Subliner
can you tell we which image you want to have the effect applied to and which piece of text you want to appear in it?Best!
Marius
-
Dear @mathias
but you added a caption for the image?
You need to add the caption by selecting an image and then click on edit caption.Best!
Marius
-
Dear @mathias
but you added a caption for the image?
You need to add the caption by selecting an image and then click on edit caption.Best!
Marius
-
hey, you can do this with custom css!
.img img{ transition: all 300ms ease; } .img:hover img{ filter: brightness(0.9); } .img .caption{ opacity: 0; transition: opacity 300ms ease; } .img:hover .caption{ opacity: 1; }Css is not so hard to do! There are little video courses about it like the one I recommend on khan university in the documentation section "custom css"
@arminunruh Hello!
It´s working for me, but it will be perfect if I can something like a "fade to white" .. Put white transparency when hover to see the black text better.
Thanks!
-
-
-
@mariusjopen It´s done!
Thanks!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login