I'm trying to replicate the effect of this animation with ggplot2 and gganimate

I've managed to accomplish a similar transition but the problem is that the animation of the curve doesn't start at 0.
data <- data.frame(observation = c("a", "b", "c"),
start = 0,
y = 0,
end = c(10, 20, 30))
ggplot(data) +
geom_curve(aes(x = start, xend = end, y = 0, yend = 0), curvature = -.5, color = "yellow") +
transition_states(observation) +
theme_void() +
theme(
plot.background = element_rect(fill = "black", color = "black"),
panel.background = element_rect(fill = "black", color = "black")
)
Thanks in advance,

