1.2.0 • Published 9 years ago

tween-functions v1.2.0

Weekly downloads
213,855
License
BSD
Repository
github
Last release
9 years ago

Tween-functions

Robert Penner's tweening functions as used in React-tween-state and React-state-stream.

Penner's original functions uses the change in value rather than final value as parameter. I much prefer the latter, so this is what this library will use.

API

tweenFunction.tweenName(currentTime, beginValue, endValue, totalDuration)

Example

var tweenFunctions = require('tween-functions');
tweenFunctions.easeInQuad(1, 0, 50, 5); // => 4

List of available functions:

  • linear
  • easeInQuad
  • easeOutQuad
  • easeInOutQuad
  • easeInCubic
  • easeOutCubic
  • easeInOutCubic
  • easeInQuart
  • easeOutQuart
  • easeInOutQuart
  • easeInQuint
  • easeOutQuint
  • easeInOutQuint
  • easeInSine
  • easeOutSine
  • easeInOutSine
  • easeInExpo
  • easeOutExpo
  • easeInOutExpo
  • easeInCirc
  • easeOutCirc
  • easeInOutCirc
  • easeInElastic
  • easeOutElastic
  • easeInOutElastic
  • easeInBack
  • easeOutBack
  • easeInOutBack
  • easeInBounce
  • easeOutBounce
  • easeInOutBounce
banner-anim-autoplay-fixrc-banner-anim-autoplay-fixrc-banner-anim-autoplay-fixed@deboxsoft/webapp-componentsreact-native-improved-drawer@infinitebrahmanuniverse/nolb-twe@everything-registry/sub-chunk-2989wms-mobile-uiwilderness-coreshainareapp-tween-statern-drawerspecular-animationsea-uivext-animatevext-tween-onemicro-business-native-basemkcp-solarpunkjaeger-react-trace-componentjaeger-trace-componenetkw-react-tween-stategloo-jaeger-uineatuimy-react-native-basemakyomatt-react-scrollupreact-spy-scrollpolyglot-component-librarypixidom.jsreact-confettireact-native-drawerreact-native-drawer-addmenureact-native-drawer-clearreact-native-drawer-clonereact-native-drawer-ksireact-native-xsy-drawernovacap-componentsrc-scroll-animrc-banner-animrc-banner-anim-fixrc-banner-anim-strict-modereact-native-tween-animationreact-native-base-customreact-scroll-upreact-scroll-up-buttonreact-scroll-up-updatereact-tween-statereact-tween-state-fixedsubschema-nativetween-onetweening@artis-auxilium/native-base@ajaybhatia/native-base@achmadk/legacy-native-base@aaxis/native-base@codingdud/coolicons@codler/native-base@deboxsoft/native-baseyunjiwong-sliderwebgl-stuffvc-tween-one@igetgames/spectacle@krenaldi/learnstorybook-design-system-template@luciadias/storybook-notimation@itayn-fireberry-org/itayn-test@msidolphin/vue-progress@fangm/native-base@jimpick/spectacle@jlongster/spectacle@qwp/react-scroll-up@red-elephant/native-base@skedulr/nebula-ui-library@suehok/native-base@sekmet/react-confetti@digitalrakesh/jsui@dimcheify/dimui@cristianps1988/ds-template@roblabla/react-tween-stateease-tweening@tsehang/native-baseab-react-tween-stateab-tween-stateamobile-uialjesusg_jaeger-uiant-motion-vueforceclouds-native-baseforge-dataviz-iot-data-modulesblock-trace-viewconfetti-react
1.2.0

9 years ago

1.1.0

9 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago