Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:15:56+00:00 2026-05-31T17:15:56+00:00

I have tried and failed to get this working. Basically I am trying to

  • 0

I have tried and failed to get this working. Basically I am trying to get it so that when you hover over one div, it should change the sibling’s opacity to 0.5 that has class="receiver".

If you see this jsFiddle, there are 2 divs with class="outerwrapper", and both contain 2 divs of classes hover and receiver. When you hover over the div with class hover, the receiver‘s opacity should be set to 0.5, but only the one inside the same div (outerwrapper).

Any help would be much appreciated. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:15:57+00:00Added an answer on May 31, 2026 at 5:15 pm

    You don’t need to use jQuery, or JavaScript, for this (though you can1), CSS is quite capable in most browsers of achieving the same end-result:

    .hover:hover + .receiver {
        opacity: 0.5;
    }
    

    JS Fiddle demo.

    And also, even with ‘only’ CSS, in modern/compliant browsers, it’s possible to use fade transitions (or, strictly speaking, to transition the opacity):

    .receiver {
        width: 50px;
        height: 50px;
        background-color: blue;
        opacity: 1;
        -webkit-transition: opacity 1s linear;
        -o-transition: opacity 1s linear;
        -ms-transition: opacity 1s linear;
        -moz-transition: opacity 1s linear;
        transition: opacity 1s linear;
    }
    
    .hover:hover + .receiver {
        opacity: 0.5;
        -webkit-transition: opacity 1s linear;
        -o-transition: opacity 1s linear;
        -ms-transition: opacity 1s linear;
        -moz-transition: opacity 1s linear;
        transition: opacity 1s linear;
    }
    ​
    

    JS Fiddle demo.


    1. I was going to provide a JavaScript/jQuery solution as well, but there are several others already posted, now, and I’d rather not repeat other people’s answers in my own (it just feels like plagiarism/copying).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried and failed to find out how to get the entire XML
I have tried a lot but have always failed to get the backup of
When I trying to commit I get this error. What that was done, I
I have tried to do some reading about it, but I failed to find
gem install heroku failed with following message and I have tried the solution here
I have tried this... Dim myMatches As String() = System.Text.RegularExpressions.Regex.Split(postRow.Item(Post), \b\#\b) But it is
Ok i have an mvc app. and im trying to get my delete to
I know Java ok, but not heavy. I am trying to get SchemaSpy working
Note: I have seen this and tried to take as much from it as
I have been working on a mysql database that I set up with phpmyadmin...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.