Skip to content

Files

Latest commit

Mar 20, 2015
c42bd1a · Mar 20, 2015

History

History
39 lines (28 loc) · 1009 Bytes

expand.md

File metadata and controls

39 lines (28 loc) · 1009 Bytes
title
FX Expand

Expand

Expends the element from zero to its regular size. Supported directions are horizontal and vertical. Playing the effect in reverse will collapse the element to zero size and hide it.

Horizontal Expand Example

<div id="foo" style="width:200px; height: 200px; background: red;">
    I will be animated
</div>

<script>
    kendo.fx($("#foo")).expand("horizontal").play();
    // an alternative syntax would be
    // kendo.fx($("#foo")).expandHorizontal().play();
</script>

Vertical Expand Example

<div id="foo" style="width:200px; height: 200px; background: red;">
    I will be animated
</div>

<script>
    kendo.fx($("#foo")).expand("vertical").play();
    // an alternative syntax would be
    // kendo.fx($("#foo")).expandVertical().play();
</script>

Constructor Parameters

direction String

The direction in which the element will be expanded. Either horizontal or vertical.