API Reference 0.6.0bootjackTransition

Transition class

Transition related utilities.

class Transition {
 
 /** Return true if transition is used.
  */
 static bool get isUsed => _used;
 static bool _used = false;
 
 /** Register to use Transition effect.
  */
 static void use() {
   if (isSupported)
     _used = true;
 }
 
 /** The event name for transition end across browser.
  */
 static String get end {
   if (_end == null) {
     _end = p.fallback(_TRANS_END_EVENT_NAMES[Device.cssPrefix], () => 'transitionend');
   }
   return _end;
 }
 static String _end;
 
 /** Return true if CSS transition is supported in this device.
  */
 static bool get isSupported =>
     p.fallback(_supported, () => _supported = !browser.msie || browser.version >= 9);
 static bool _supported;
 
}

Static Properties

final String end #

The event name for transition end across browser.

static String get end {
 if (_end == null) {
   _end = p.fallback(_TRANS_END_EVENT_NAMES[Device.cssPrefix], () => 'transitionend');
 }
 return _end;
}

final bool isSupported #

Return true if CSS transition is supported in this device.

static bool get isSupported =>
   p.fallback(_supported, () => _supported = !browser.msie || browser.version >= 9);

final bool isUsed #

Return true if transition is used.

static bool get isUsed => _used;

Static Methods

void use() #

Register to use Transition effect.

static void use() {
 if (isSupported)
   _used = true;
}