Answer the question
In order to leave comments, you need to log in
How to draw an animated arrow on hover in css?
An arrow is drawn in css, how can I make it long up when hovering?
<div class="arrow"></div>
<div class="arrow-con"></div>
.arrow{
border-right: 1px solid;
border-bottom: 1px solid;
height: 11px;
width: 11px;
transform: rotate(225deg);
margin-left: 2px;
}
.arrow-con{
width:1px;
height: 68px;
background-color: #292b2c;
padding: 0;
margin-left: 7px;
margin-top: -12px;
cursor:pointer;
}
.one:hover .arrow {
border-right: 1px solid #f1cb30;
border-bottom: 1px solid #f1cb30;
height: 11px;
width: 11px;
transform: rotate(225deg);
margin-left: 2px;
}
.one:hover .arrow-con{
width:1px;
height: 68px;
background-color: #f1cb30;
padding: 0;
margin-left: 7px;
margin-top: -12px;
}
Answer the question
In order to leave comments, you need to log in
.arrow{
border-right: 1px solid;
border-bottom: 1px solid;
height: 11px;
width: 11px;
transform: rotate(225deg);
margin-left: 2px;
}
.arrow-con{
width:1px;
height: 10px;
background-color: #292b2c;
padding: 0;
margin-left: 7px;
margin-top: -12px;
cursor:pointer;
-webkit-transition: all 1s;
-moz-transition: all 1s;
-ms-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
}
.one {
display: inline-block;
}
.one:hover .arrow {
border-right: 1px solid #f1cb30;
border-bottom: 1px solid #f1cb30;
height: 11px;
width: 11px;
transform: rotate(225deg);
margin-left: 2px;
}
.one:hover .arrow-con{
width:1px;
height: 68px;
background-color: #f1cb30;
padding: 0;
margin-left: 7px;
margin-top: -12px;
}
<div class="one">
<div class="arrow"></div>
<div class="arrow-con"></div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question