|
@ -24,6 +24,13 @@ $.fn.shape = function(parameters) { |
|
|
query = arguments[0], |
|
|
query = arguments[0], |
|
|
methodInvoked = (typeof query == 'string'), |
|
|
methodInvoked = (typeof query == 'string'), |
|
|
queryArguments = [].slice.call(arguments, 1), |
|
|
queryArguments = [].slice.call(arguments, 1), |
|
|
|
|
|
|
|
|
|
|
|
requestAnimationFrame = window.requestAnimationFrame |
|
|
|
|
|
|| window.mozRequestAnimationFrame |
|
|
|
|
|
|| window.webkitRequestAnimationFrame |
|
|
|
|
|
|| window.msRequestAnimationFrame |
|
|
|
|
|
|| function(callback) { setTimeout(callback, 0); }, |
|
|
|
|
|
|
|
|
returnedValue |
|
|
returnedValue |
|
|
; |
|
|
; |
|
|
|
|
|
|
|
@ -114,18 +121,19 @@ $.fn.shape = function(parameters) { |
|
|
$module |
|
|
$module |
|
|
.addClass(className.animating) |
|
|
.addClass(className.animating) |
|
|
; |
|
|
; |
|
|
module.repaint(); |
|
|
|
|
|
$module |
|
|
|
|
|
.addClass(className.animating) |
|
|
|
|
|
; |
|
|
|
|
|
$activeSide |
|
|
|
|
|
.addClass(className.hidden) |
|
|
|
|
|
; |
|
|
|
|
|
$sides |
|
|
$sides |
|
|
.css(propertyObject) |
|
|
.css(propertyObject) |
|
|
.one(module.get.transitionEvent(), callback) |
|
|
.one(module.get.transitionEvent(), callback) |
|
|
; |
|
|
; |
|
|
module.set.duration(settings.duration); |
|
|
module.set.duration(settings.duration); |
|
|
|
|
|
requestAnimationFrame(function() { |
|
|
|
|
|
$module |
|
|
|
|
|
.addClass(className.animating) |
|
|
|
|
|
; |
|
|
|
|
|
$activeSide |
|
|
|
|
|
.addClass(className.hidden) |
|
|
|
|
|
; |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
callback(); |
|
|
callback(); |
|
|