1div {
2 border: 1px solid #eee;
3}
4div > ul {
5 visibility: hidden;
6 opacity: 0;
7 transition: visibility 0s, opacity 0.5s linear;
8}
9div:hover > ul {
10 visibility: visible;
11 opacity: 1;
12}
1div > img {
2 visibility: hidden;
3 opacity: 0;
4 height: 0;
5 width: 0;
6}
7
8div:hover > img {
9 visibility: visible;
10 opacity: 1;
11 height: auto;
12 width: 4rem;
13 transition: all 0.5s, opacity 2s;
14}