UNPKG

neft

Version:

Universal Platform

58 lines (32 loc) 1.65 kB
# NumberAnimation > **API Reference** ▸ [Renderer](/api/renderer.md) ▸ [Animation](/api/renderer-animation.md) ▸ [PropertyAnimation](/api/renderer-propertyanimation.md) ▸ **NumberAnimation** <!-- toc --> ```javascript Rectangle { width: 100; height: 100 color: 'red' NumberAnimation { running: true property: 'x' from: 0 to: 300 loop: true duration: 1700 } } ``` > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/extensions/animation/types/property/types/number.litcoffee) * * * ### `NumberAnimation.New()` <dl><dt>Static method of</dt><dd><i>NumberAnimation</i></dd><dt>Parameters</dt><dd><ul><li>component — <i>Component</i><i>optional</i></li><li>options — <i>Object</i><i>optional</i></li></ul></dd><dt>Returns</dt><dd><i>NumberAnimation</i></dd></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/extensions/animation/types/property/types/number.litcoffee#numberanimation-numberanimationnewcomponent-component-object-options) * * * ### `constructor()` <dl><dt>Extends</dt><dd><i>PropertyAnimation</i></dd><dt>Returns</dt><dd><i>NumberAnimation</i></dd></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/extensions/animation/types/property/types/number.litcoffee#numberanimation-numberanimationconstructor--propertyanimation) * * * ### `from` <dl><dt>Type</dt><dd><i>Float</i></dd></dl> * * * ### `to` <dl><dt>Type</dt><dd><i>Float</i></dd></dl>