@d4c4237abc

Как нарисовать анимированную стрелочку при наведение в css?

Нарисована стрелочка в css, как при наведение сделать увлечение ее длинны в вверх?
<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;
}
  • Вопрос задан
  • 345 просмотров
Решения вопроса 1
@maxsnw
.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>
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы