Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View simeydotme's full-sized avatar
🍉

Simon Goellner simeydotme

🍉
View GitHub Profile
@simeydotme
simeydotme / getTransitionSpeed.js
Last active August 29, 2015 14:00
a jQuery function to get either all the transition times or just the longest css transition time on an element.
function getTransitionSpeed( $el , returnWholeArray ) {
returnWholeArray = returnWholeArray || false;
var speed = $el.css("transition-duration").split(","),
speedLength = speed.length;
for( var i = 0; i < speedLength; i++) {
var multiplier = 1000;