Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
<div id="container">
    <div id="div1"></div>
    <div id="div2"></div>
</div>
</body>
</html>
 
#container {
    display: inline-block;
}
#container #div1 {
    width: 100px;
    height: 100px;
    background-color: #000;
}
#container #div2 {
    visibility: hidden;
    opacity: 0;
    width: 100px;
    height: 100px;
    background-color: #F00;
    transition: visibility 0s linear 0.5s, opacity 0.5s linear;
}
#container:hover #div2 {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers