New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the Effects settings.

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EffectsBuilder

Inheritance: objectEffectsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public EffectsBuilder(Effects effects)
Parameters:effectsEffects

Properties

C#
protected IList<string> Container { get; }
C#
protected Effects Effects { get; set; }

Methods

Sets a predefined animation duration (Fast, Normal, Slow).

C#
public EffectsBuilder Duration(AnimationDuration value)
Parameters:valueAnimationDuration

The animation duration.

Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; animation.Open(open =&gt; open.Duration(AnimationDuration.Slow)))

Sets the animation duration.

C#
public EffectsBuilder Duration(int value)
Parameters:valueint

The animation duration.

Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; animation.Open(open =&gt; open.Duration(200)))

Enables the expand effect.

C#
public EffectsBuilder Expand()
Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; animation.Open(open =&gt; open.Expand()))

Configures the expand effect direction.

C#
public EffectsBuilder Expand(ExpandDirection direction)
Parameters:directionExpandDirection

The expand direction.

Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; animation.Open(open =&gt; open.Expand(ExpandDirection.Vertical)))

Configures the fade effect direction.

C#
public EffectsBuilder Fade(FadeDirection direction)
Parameters:directionFadeDirection

The fade direction.

Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; animation.Close(close =&gt; close.Fade(FadeDirection.Out)))

Enables or disables the effect animation reverse.

C#
public EffectsBuilder Reverse(bool value)
Parameters:valuebool

If true, reverses the effect animation.

Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; {
animation.Open(open =&gt; open.SlideIn(SlideDirection.Left).Duration(500));
animation.Close(close =&gt; close.SlideIn(SlideDirection.Left).Duration(500).Reverse(true));
})

Configures the slidein effect direction.

C#
public EffectsBuilder SlideIn(SlideDirection direction)
Parameters:directionSlideDirection

The slidein direction.

Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; animation.Close(close =&gt; close.SlideIn(SlideDirection.Right)))

Configures the zoom effect direction.

C#
public EffectsBuilder Zoom(ZoomDirection direction)
Parameters:directionZoomDirection

The zoom direction.

Returns:

EffectsBuilder

Example:
C#
.Animation(animation =&gt; animation.Close(close =&gt; close.Zoom(ZoomDirection.Out)))