• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Opacity Hover Pic-Text

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Opacity Hover Pic-Text

This topic is: resolved

Tagged: hover, opacity

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 3 months ago by protechig.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 30, 2013 at 5:26 am #76263
    BlakeN
    Participant

    Hi,

    Would code would be required to recreate the hover effect that is taking place in the top middle of this page http://www.charitywater.org/ ?

    If you look at any one of the three pictures the dark overlay fades out when hovered over but the text does not lose any opacity.

    I would be implementing it for the home top section of the executive pro theme.

    All that I have found in search is:
    CSS3:
    img.opacity {
    opacity: 0.5;
    filter: alpha(opacity=50);
    }

    img.opacity:hover {
    opacity: 1;
    filter: alpha(opacity=100);
    }
    HTML:

    Thanks for the help.

    http://directmktg101.com/
    November 30, 2013 at 6:12 am #76266
    protechig
    Member

    It's pretty easy:

    .home-top img {
       opacity: 0.5;
    }
    
    .home-top img:hover {
       opacity: 1;
    }

    Please note i'm not including alpha opacity (it's for IE I believe).

    For future reference, you should look at firebug or Chrome Developer tools to test these kinds of things out.

    Hope this helped 🙂


    Zach Russell
    President, ProTech Internet Group

    November 30, 2013 at 6:29 am #76269
    BlakeN
    Participant

    Thanks for the quick reply.

    I was able to implement the code above prior to posting the question. I wanted to recreate the example http://www.charitywater.org/ where it fades from dark to light and the text does not fade.

    November 30, 2013 at 6:42 am #76271
    BlakeN
    Participant

    I just realized I only need to add the opacity in the image. It's early here.

    Thanks again.

    November 30, 2013 at 6:45 am #76272
    protechig
    Member

    There are several ways in which this could be done. I would encourage you to use firebug or Chrome Developer Tools to see exactly what CharityWater is doing, then you'll be able to replicate it exactly 🙂


    Zach Russell
    President, ProTech Internet Group

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Opacity Hover Pic-Text’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble