I have an element with a right and bottom border, which I'm trying to animate on hover. The animation I'd like and have seen examples of is where the border line is drawn left to right and top to bottom, however, all of these examples use four borders with box-shadows that can't be used on two sides only. Is it possible to animate just two? This is how my border is styled at the moment:
HTML:
a {
display: block;
}
img {
border-width: 12px;
border-style: solid;
border-top-color: blue;
border-right-color: blue;
border-bottom-color: transparent;
border-left-color: transparent;
width: 320px;
transition: all 0.5s ease;
}
<a href="#"><img src="https://placehold.it/280x170" /></a>