I have the following animation:
An idea is to run the animation in the opposite direction while doing a translation
@keyframes dash {
to {
stroke-dasharray: 190;
}
}
@keyframes move {
to {
transform: translateX(0);
}
}
#currency-chart-path {
stroke-dasharray: 279;
stroke-dashoffset: 381;
animation: dash 10s linear forwards;
}
#Chartline {
animation: move 10s linear forwards;
transform: translateX(-200px);
}