Answer the question
In order to leave comments, you need to log in
CSS animation (newbie help)?
Good afternoon
Friends! Help me please. I'm a beginner Web Developer, started learning Animations and got into trouble. When laying out the site according to the layout, there was animation on hover (when hovering at the bottom of the link, a stick appeared and eventually stretched to the length of the entire container, a link to the site with an example -
beloweb.ru/javascript-jquery/10-neveroyatnyih-effe...(2 block))
.nav1{
width: 15vh;
height: 10vh;
background-color: blue;
z-index: 0;
display: block;
position: absolute;
top: 1px;
}
.nav11{
width: 15vh;
height: 10vh;
background-color: red;
z-index: 1;
display: block;
position: absolute;
top: 1px;
}
a.nav11{
transition-property: all;
transition-duration: 0s;
z-index: 0;
}
a.nav1:hover{
height: 1vh;
z-index: 100;
}
li.nav11{
transition-property: all;
transition-duration: 1s;
z-index: 0;
}
li.nav11:hover{
width: 20vh
}
<li><a class="nav11"><span class="nav1"></span></a></li>
Answer the question
In order to leave comments, you need to log in
would you rather do everything in codepen and then throw a question so that you can quickly see everything and help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question