treehouse : what would you like to learn today?
Web Design Web Development iOS Development

mouseover trick

  • I need to create some code that when i mouse-over any part of my background, a portion of a background that is underneath that background is shown. I would prefer a css fix as i am not quite acclimated to jquery just yet. Thanks
  • If it's a background, you can't mouse-over it.

    It sounds like you are talking about an element that has a background becoming transparent to show the background of the parent element. Is that what you are after?
  • Well what i want to do is have a transperancy circle (for lack of beter words) over the cursor so that when it hover overs an element it exposes the image that is underneath an image. If that makes any sense at all...
  • I think there is something about image-masks but I don't have time to research it now.

    Google is your friend but : https://developer.mozilla.org/en/CSS/-webkit-mask-image