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 6179151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:36:13+00:00 2026-05-24T00:36:13+00:00

Hi I currently have span that displays over an image on hover, however I

  • 0

Hi I currently have span that displays over an image on hover, however I want to use a bit of javascript or css transitions to make this div fade in to about 0.8 opacity on hover then back to 0 when the mouse is not hovering.

Here is an example of how I have it setup so far, now all thats needed is the fade and 0.8 opacity:

How its setup – Jsfiddle

Im sure there is a simple bit of code that someone has to do this

Help is much appreciated thanks!

  • 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-24T00:36:14+00:00Added an answer on May 24, 2026 at 12:36 am

    So… here’s the CSS3 / HTML5-way to do this. This won’t work in IE though: it will fall back on the regular, immediate way (so it does work, it just isn’t as smooth as it is in the real browsers).

    div.yourDiv {
        -webkit-transition: .4s ease-in-out opacity;
        -moz-transition: .4s ease-in-out opacity;
        -o-transition: .4s ease-in-out opacity;
        transition: .4s ease-in-out opacity;
    }
    
    div.yourDiv:hover {
        opacity: 0.8;
    }
    

    Since CSS3-transitions are using hardware-accerelation, this really is very smooth! Besides that, you don’t even need any Javascript or jQuery for this =)!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have an ASP.NET GridView that displays a few columns to the user
I have this jQuery code that handles hovering over rating stars, when you hover
I currently have an MS Access application that connects to a PostgreSQL database via
I currently have a DetailsView in ASP.NET that gets data from the database based
I have a window that displays text. There are two parts to the text:
I have an app that loads records from a binary log file and displays
I have another Javascript regex conundrum... (apologies if this is a bit long-winded -
I have two span tags that contain content. The first span tag will hold
I'm currently designing a wordpress theme, and I require a bit of javascript for
I am currently working on a form that displays information about a specific product

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.