title |
---|
FX Fade |
Fades the element in or out.
Supported directions are in
and 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>
<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>
The direction of the effect. Accepted values are "in"
or "out"
.
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.
<div id="foo">
Foo
</div>
<script>
kendo.fx($("#foo")).fade("out").startValue(0.5).play();
</script>
the initial opacity value.
Effect
The effect instance
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.
<div id="foo">
Foo
</div>
<script>
kendo.fx($("#foo")).fade("in").endValue(0.5).play();
</script>
the final opacity value.
Effect
The effect instance