Edit this page

Fade

Fades the element in or out. Supported directions are in and out.

Fading an element out

<div id="foo">
    I will fade out
</div>

<script>
    kendo.fx($("#foo")).fade("out").play();
    // an alternative syntax would be
    // kendo.fx($("#foo")).fadeOut.play();
</script>

Fading an element in

<div id="foo">
    I will fade in
</div>

<script>
    kendo.fx($("#foo")).fade("in").play();
    // an alternative syntax would be
    // kendo.fx($("#foo")).fadeIn.play();
</script>

Constructor Parameters

direction String

The direction of the effect. Accepted values are "in" or "out".

Methods

startValue

Sets the initial opacity value of the element. 1 means the element will be fully opaque. 0 means that the element will be fully transparent.

Fading an element out, starting from 50%

<div id="foo">
    Foo
</div>

<script>
    kendo.fx($("#foo")).fade("out").startValue(0.5).play();
</script>

Parameters

value Number

the initial opacity value.

Returns

Effect The effect instance

endValue

Sets the final opacity value of the element. 1 means the element will be fully opaque. 0 means that the element will be fully transparent.

Fading an element in to 50% opacity

<div id="foo">
    Foo
</div>

<script>
    kendo.fx($("#foo")).fade("in").endValue(0.5).play();
</script>

Parameters

value Number

the final opacity value.

Returns

Effect The effect instance

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy