This question was asked before, but the answer uses jQuery, here.
So, I am going to tweak the question to specifically ask for a native solution, to minimize dependencies.
Let's say hypothetically, you have a <div>
and that <div>
is in mid-transition of its opacity
value and top
value. How would I get the value of both of those properties mid-transition using native JavaScript?