Class Alfresco.util.Anim
Transition methods that handles browser limitations.
Defined in: alfresco.js
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
Alfresco.util.Anim.fadeAttributes
The default attributes for a fadeIn or fadeOut call.
|
| <static> |
Alfresco.util.Anim.pulseAttributes
Default attributes for a pulse call.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
Alfresco.util.Anim.fadeIn(el, attributes)
Displays an object with opacity 0, increases the opacity during
|
| <static> |
Alfresco.util.Anim.fadeOut(el, attributes)
Displays an object with opacity 1, decreases the opacity during
|
| <static> |
Alfresco.util.Anim.pulse(el, attributes)
Pulses the background colo(u)r of an HTMLELement
|
Field Detail
<static>
{An object literal of the following form:
{
adjustDisplay: true, // Will handle style attribute "display" in
// the appropriate way depending on if its
// fadeIn or fadeOut, default is true.
callback: null, // A function that will get called after the fade
scope: this, // The scope the callback function will get called in
period: 0.5 // Period over which animation occurs (seconds)}
Alfresco.util.Anim.fadeAttributes
The default attributes for a fadeIn or fadeOut call.
<static>
{An object literal containing:
callback: {object} Function definition for callback on complete. {fn, scope, obj}
inColor: {string} Optional colour for the pulse (default is #ffff80)
outColor: {string} Optional colour to fade back to (default is original element backgroundColor)
inDuration: {int} Optional time for "in" animation (default 0.2s)
outDuration: {int} Optional time for "out" animation (default 1.2s)
clearOnComplete: {boolean} Set to clear the backgroundColor style on pulse complete (default true)}
Alfresco.util.Anim.pulseAttributes
Default attributes for a pulse call.
Method Detail
<static>
Alfresco.util.Anim.fadeIn(el, attributes)
Displays an object with opacity 0, increases the opacity during
0.5 seconds for browsers supporting opcaity.
(IE does not support opacity)
0.5 seconds for browsers supporting opcaity.
(IE does not support opacity)
- Parameters:
- {HTMLElement} el
- element to fade in
- attributes
<static>
Alfresco.util.Anim.fadeOut(el, attributes)
Displays an object with opacity 1, decreases the opacity during
0.5 seconds for browsers supporting opacity and finally hides it.
(IE does not support opacity)
0.5 seconds for browsers supporting opacity and finally hides it.
(IE does not support opacity)
- Parameters:
- {HTMLElement} el
- element to fade out
- attributes
<static>
Alfresco.util.Anim.pulse(el, attributes)
Pulses the background colo(u)r of an HTMLELement
- Parameters:
- el
- {HTMLElement|string} element to fade out
- {object} attributes
- Object literal containing optional custom values