I have a css button animation where is circles a line around the button and what i want is when you hover over it it will stop the end point but continue the beginning point until it reaches the end.
<a href="#" class="animation purple center-block">About Us</a>
<style>
@keyframes electronic {
0%, 100% {
background-position: 20px -30px;
}
25% {
background-position: 150px 5px;
}
50% {
background-position: 20px 40px;
}
75% {
background-position: -100px 5px;
}
}
</style>
Here is a js fiddle: https://jsfiddle.net/Lypuc0hn/
EDIT: Sorry question is a bit unclear but i will elaborate.
Currently the line goes around the circle but what i want is so when you hover over it it will keep going until the button has a complete border.
So basicly 1 point of the line will stop while the other keeps going until it make an entire border