[Support request] Image hover opacity

Home Forums Support [Support request] Image hover opacity

Home Forums Support Image hover opacity

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #587564
    Kle

    Hi there,

    I would like my blog posts images to change opacity on hover. What’s the css for that?

    Thank you.

    #587672
    David
    Staff
    Customer Support

    Hi, you can try this:

    .blog .post img:hover,
    .archive .post img:hover {
    	opacity: 0.5;
        transition: opacity 0.35s;
    }
    #588011
    Kle

    Perfect! Thank you. Is thera a code also for images in widgets? Or would have to be widget by widget? Thank You: )

    #588015
    David
    Staff
    Customer Support

    Try:

    .blog .post img:hover,
    .archive .post img:hover,
    .widget img:hover {
    	opacity: 0.5;
        transition: opacity 0.35s;
    }
    #588174
    Kle

    Thank you very much David! Just made and adjusment and worked: )

    .widget img { to .widget img:hover,

    Only have one last question, the css action its not working when in single posts. Main, archives, catagories it does. What’s the trigger for single posts?

    #588210
    Leo
    Staff
    Customer Support

    Try .single img:hover

    #588219
    Kle

    Perfect, thank you Leo/David!

    #588228
    David
    Staff
    Customer Support

    You’re welcome. Corrected the code above =)

    #588239
    Kle

    : )

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.