narrowdesign narrowdesign - 1 year ago 120
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 Source

Try with:

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

$('#objectID').css('transition-duration');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download