Я хочу получить значение translateY
из встроенного css с JavaScript.
Вот значение строки:
style ="transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(0px, -13361.5px) scale(1) translateZ(0px);"
Этот код дает мне полный список в переменной:
var tabletParent = document.getElementById("scroller");
var toTop = tabletParent.style.transform;
console.log(toTop);
console.log
translate(0px, -12358.8px) scale(1) translateZ(0px)
Ожидание toTop
как -12358.8px.