Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trigger hover behaviour for multiple layers of elements
- <img class="Image" src="./img/foo.png">
- .Image {
- opacity: 0;
- }
- $(".CircleImage").hover(
- function() {
- $(this).fadeTo(0,1); // mouseenter
- },
- function() {
- $(this).fadeTo(200,0); // mouseleave
- }
- );
- <span class="imgContainer">
- <a href="#">X</a>
- <img class="Image" src="./img/foo.png" width="100" height="100">
- </span>
- .imgContainer {
- opacity: 0.1;
- width: 100px;
- height: 100px;
- }
- .imgContainer a {
- position: absolute;
- }
Add Comment
Please, Sign In to add comment