N
N
Nikita Trigub2016-07-20 17:49:36
css
Nikita Trigub, 2016-07-20 17:49:36

Appearance of a div when hovering over a block with a transition property?

.block-2{
width: inherit;
height: 200px;
display: none;
transform: translateY(-200px);
background: rgba(0,0,0,.8);
transition: all 0.5s ease 0s;
}
.block-1:hover .block-2{
display: block;
transform: translateY(0px);
} It is
necessary that block 2 descends smoothly from block 1
, it is impossible to make it descend smoothly and so that during the descent it does not go beyond the first block

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
A person from Kazakhstan, 2016-07-20
@LenovoId

codepen.io/Geyan/pen/dXmrPL?editors=110 right?

N
Nikita Trigub, 2016-07-20
@Nikita_Trigub

codepen.io/beatmaker/pen/mExPQO
like this
only with the display property
and so that the block does not stick out on top,
remove the comments in css and see how it should be

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question