If you apply a step input voltage to an LC tank, the inductor current increases until the capacitor voltage equals the input step voltage and there is no voltage across the inductor.
But due to the inductance of the inductor, the current does not stop flowing into the capacitor.
The stored inductive energy keeps the current flowing, increasing the capacitor voltage as the inductor current gets smaller, until all the inductive energy is stored in the capacitor and the current stops.
It turns out that ideally, the capacitor voltage will always be twice the input voltage at that point.
I will leave the mathematical proof of that. using a little calculus, as an exercise for the reader.
Below is the simulation showing the described relationship between the inductor current (red trace) and the capacitor voltage (yellow trace).
View attachment 163709