Lines Matching refs:Effect
67 var Effect = { class
154 return Effect[ Effect.PAIRS[ effect ][ element.visible() ? 1 : 0 ] ](element, Object.extend({
160 Effect.DefaultOptions.transition = Effect.Transitions.sinoidal;
164 Effect.ScopedQueue = Class.create(Enumerable, {
218 Effect.Queues = {
224 this.instances.set(queueName, new Effect.ScopedQueue());
227 Effect.Queue = Effect.Queues.get('global');
229 Effect.Base = Class.create({
232 if (options && options.transition === false) options.transition = Effect.Transitions.linear;
233 this.options = Object.extend(Object.extend({ },Effect.DefaultOptions), options || { });
269 Effect.Queues.get(Object.isString(this.options.queue) ?
292 Effect.Queues.get(Object.isString(this.options.queue) ?
308 Effect.Parallel = Class.create(Effect.Base, {
327 Effect.Tween = Class.create(Effect.Base, {
342 Effect.Event = Class.create(Effect.Base, {
349 Effect.Opacity = Class.create(Effect.Base, {
352 if (!this.element) throw(Effect._elementDoesNotExistError);
367 Effect.Move = Class.create(Effect.Base, {
370 if (!this.element) throw(Effect._elementDoesNotExistError);
396 Effect.MoveBy = function(element, toTop, toLeft) {
397 return new Effect.Move(element,
401 Effect.Scale = Class.create(Effect.Base, {
404 if (!this.element) throw(Effect._elementDoesNotExistError);
475 Effect.Highlight = Class.create(Effect.Base, {
478 if (!this.element) throw(Effect._elementDoesNotExistError);
510 Effect.ScrollTo = function(element) {
517 return new Effect.Tween(null,
527 Effect.Fade = function(element) {
539 return new Effect.Opacity(element,options);
543 Effect.Appear = function(element) {
556 return new Effect.Opacity(element,options);
560 Effect.Puff = function(element) {
571 return new Effect.Parallel(
572 [ new Effect.Scale(element, 200,
574 new Effect.Opacity(element, { sync: true, to: 0.0 } ) ],
586 Effect.BlindUp = function(element) {
589 return new Effect.Scale(element, 0,
600 Effect.BlindDown = function(element) {
603 return new Effect.Scale(element, 100, Object.extend({
618 Effect.SwitchOff = function(element) {
621 return new Effect.Appear(element, Object.extend({
624 transition: Effect.Transitions.flicker,
626 new Effect.Scale(effect.element, 1, {
640 Effect.DropOut = function(element) {
647 return new Effect.Parallel(
648 [ new Effect.Move(element, {x: 0, y: 100, sync: true }),
649 new Effect.Opacity(element, { sync: true, to: 0.0 }) ],
662 Effect.Shake = function(element) {
674 return new Effect.Move(element,
676 new Effect.Move(effect.element,
678 new Effect.Move(effect.element,
680 new Effect.Move(effect.element,
682 new Effect.Move(effect.element,
684 new Effect.Move(effect.element,
691 Effect.SlideDown = function(element) {
697 return new Effect.Scale(element, 100, Object.extend({
721 Effect.SlideUp = function(element) {
726 return new Effect.Scale(element, window.opera ? 0 : 1,
753 Effect.Squish = function(element) {
754 return new Effect.Scale(element, window.opera ? 1 : 0, {
765 Effect.Grow = function(element) {
769 moveTransition: Effect.Transitions.sinoidal,
770 scaleTransition: Effect.Transitions.sinoidal,
771 opacityTransition: Effect.Transitions.full
812 return new Effect.Move(element, {
820 new Effect.Parallel(
821 …[ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacity…
822 …new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransiti…
823 new Effect.Scale(effect.element, 100, {
839 Effect.Shrink = function(element) {
843 moveTransition: Effect.Transitions.sinoidal,
844 scaleTransition: Effect.Transitions.sinoidal,
845 opacityTransition: Effect.Transitions.none
879 return new Effect.Parallel(
880 …[ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransit…
881 …new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition,…
882 … new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition })
893 Effect.Pulsate = function(element) {
897 transition = options.transition || Effect.Transitions.linear,
902 return new Effect.Opacity(element,
908 Effect.Fold = function(element) {
917 return new Effect.Scale(element, 5, Object.extend({
921 new Effect.Scale(element, 1, {
931 Effect.Morph = Class.create(Effect.Base, {
934 if (!this.element) throw(Effect._elementDoesNotExistError);
1021 Effect.Transform = Class.create({
1033 effect: Effect.Morph,
1040 return new Effect.Parallel(
1105 Effect.Methods = {
1108 new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { }));
1114 new Effect[klass](element, options);
1119 new Effect.Highlight(element, options);
1127 Effect.Methods[effect] = function(element, options){
1129 Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);
1136 function(f) { Effect.Methods[f] = Element[f]; }
1139 Element.addMethods(Effect.Methods);