vendor/assets/javascripts/semantic-ui/modules/transition.js in semantic-ui-rails-0.0.2.1 vs vendor/assets/javascripts/semantic-ui/modules/transition.js in semantic-ui-rails-0.1.0
- old
+ new
@@ -1,14 +1,16 @@
-/* ******************************
- Semantic Module: Transition
- Author: Jack Lukic
- Notes: First Commit March 25, 2013
+/*
+ * # Semantic - Transition
+ * http://github.com/jlukic/semantic-ui/
+ *
+ *
+ * Copyright 2013 Contributors
+ * Released under the MIT license
+ * http://opensource.org/licenses/MIT
+ *
+ */
- A module for controlling css animations
-
-****************************** */
-
;(function ( $, window, document, undefined ) {
$.fn.transition = function() {
var
$allModules = $(this),
@@ -99,11 +101,13 @@
animate: function(overrideSettings) {
settings = overrideSettings || settings;
module.debug('Preparing animation', settings.animation);
if(module.is.animating()) {
- module.queue(settings.animation);
+ if(settings.queue) {
+ module.queue(settings.animation);
+ }
return false;
}
module.save.conditions();
module.set.duration(settings.duration);
module.set.animating();
@@ -615,12 +619,15 @@
namespace : 'transition',
// animation complete event
complete : function() {},
- // animation duration (useful only with future js animations)
+ // animation duration
animation : 'fade',
duration : '700ms',
+
+ // queue up animations
+ queue : true,
className : {
transition : 'ui transition',
animating : 'animating',
looping : 'looping',