I have a scroll animation and want to get the transition value to a given time.
const transform = document.getElementsByClassName('slideContainer')[0].style.transform;
For example I get the following value: translate(-2.51028%, 0%) translate3d(0px, 0px, 0px)
But I just want the -2.51028%
How do I do that?