js get element transition duration code example Example: js get transition duration parseFloat(getComputedStyle(sourceItem)["transitionDuration"])