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