narrowdesign narrowdesign - 2 months ago 15
Javascript Question

How do I get the -webkit-transition-duration property with jQuery?

Since this sets the transition duration to 1 second:

$('#objectID').css('webkit-transition-duration','1s');


I assumed this would return the current duration value:
$('#objectID').css('webkit-transition-duration');


but it does not.

Answer

Try with:

$('#objectID').css('transition-duration','1s');

$('#objectID').css('transition-duration');