Utilizing CSS transitions to animate a line drawing from right to left, then down, and finally continuing to load to the left:
point 1------point 2
|
|
|
---------point 3
Here is the CSS code I am using:
.transitionLine {
height:0px;
width:1px;
border:10px solid #ef4e4e;
-webkit-animation: increase 3s;
-moz-animation: increase 3s;
-o-animation: increase 3s;
animation: increase 3s;
animation-fill-mode: forwards;
}
@keyframes increase {
/* Load to the left */
30% {
width: 500px;
}
/* Load down */
60% {
border-radius: 3px;
width: 1000px;
}
/* Load to the left */
100% {
border-radius: 3px;
width: 1500px;
}
}
<div class="transitionLine"></div>
My CSS does not break the line to load down and left, how can I fix this issue?