js/OverlayScrollbars.js
function getCSSTransitionString(element) {
                    var transitionStr = VENDORS._cssProperty('transition');
                    var assembledValue = element.css(transitionStr);
                    if(assembledValue)
                        return assembledValue;
                    var regExpString = '\\s*(' + '([^,(]+(\\(.+?\\))?)+' + ')[\\s,]*';
                    var regExpMain = new RegExp(regExpString);
                    var regExpValidate = new RegExp('^(' + regExpString + ')+$');
                    var properties = 'property duration timing-function delay'.split(' ');
                    var result = [ ];
                    var strResult;
                    var valueArray;
                    var i = 0;
                    var j;
                    var splitCssStyleByComma = function(str) {
                        strResult = [ ];
                        if (!str.match(regExpValidate))
                            return str;
                        while (str.match(regExpMain)) {
                            strResult.push(RegExp.$1);
                            str = str.replace(regExpMain, _strEmpty);
                        }

                        return strResult;
                    };
                    for (; i < properties[LEXICON.l]; i++) {
                        valueArray = splitCssStyleByComma(element.css(transitionStr + '-' + properties[i]));
                        for (j = 0; j < valueArray[LEXICON.l]; j++)
                            result[j] = (result[j] ? result[j] + _strSpace : _strEmpty) + valueArray[j];
                    }
                    return result.join(', ');
                }
function getCSSTransitionString(element) {
                    var transitionStr = VENDORS._cssProperty('transition');
                    var assembledValue = element.css(transitionStr);
                    if(assembledValue)
                        return assembledValue;
                    var regExpString = '\\s*(' + '([^,(]+(\\(.+?\\))?)+' + ')[\\s,]*';
                    var regExpMain = new RegExp(regExpString);
                    var regExpValidate = new RegExp('^(' + regExpString + ')+$');
                    var properties = 'property duration timing-function delay'.split(' ');
                    var result = [ ];
                    var strResult;
                    var valueArray;
                    var i = 0;
                    var j;
                    var splitCssStyleByComma = function(str) {
                        strResult = [ ];
                        if (!str.match(regExpValidate))
                            return str;
                        while (str.match(regExpMain)) {
                            strResult.push(RegExp.$1);
                            str = str.replace(regExpMain, _strEmpty);
                        }

                        return strResult;
                    };
                    for (; i < properties[LEXICON.l]; i++) {
                        valueArray = splitCssStyleByComma(element.css(transitionStr + '-' + properties[i]));
                        for (j = 0; j < valueArray[LEXICON.l]; j++)
                            result[j] = (result[j] ? result[j] + _strSpace : _strEmpty) + valueArray[j];
                    }
                    return result.join(', ');
                }
function getCSSTransitionString ( element ) { var transitionStr = VENDORS . _cssProperty ( 'transition' ) ; var assembledValue = element . css ( transitionStr ) ; if ( assembledValue ) return assembledValue ; var regExpString = '\\s*(' + '([^,(]+(\\(.+?\\))?)+' + ')[\\s,]*' ; var regExpMain = new RegExp ( regExpString ) ; var regExpValidate = new RegExp ( '^(' + regExpString + ')+$' ) ; var properties = 'property duration timing-function delay' . split ( ' ' ) ; var result = [ ] ; var strResult ; var valueArray ; var i = 0 ; var j ; var splitCssStyleByComma = function ( str ) { strResult = [ ] ; if ( ! str . match ( regExpValidate ) ) return str ; while ( str . match ( regExpMain ) ) { strResult . push ( RegExp . $1 ) ; str = str . replace ( regExpMain , _strEmpty ) ; } return strResult ; } ; for ( ; i < properties [ LEXICON . l ] ; i ++ ) { valueArray = splitCssStyleByComma ( element . css ( transitionStr + '-' + properties [ i ] ) ) ; for ( j = 0 ; j < valueArray [ LEXICON . l ] ; j ++ ) result [ j ] = ( result [ j ] ? result [ j ] + _strSpace : _strEmpty ) + valueArray [ j ] ; } return result . join ( ', ' ) ; }
Returns the computed CSS transition string from the given element.
@param element The element from which the transition string shall be returned.
@returns {string} The CSS transition string from the given element.
Returns the computed CSS transition string from the given element .