PHPackages                             haberco/easing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. haberco/easing

ActivePackage[Utility &amp; Helpers](/categories/utility)

haberco/easing
==============

Robert Penner's JavaScript Easing formulas ported to PHP. Similar to jQuery Easing.

0122PHP

Since May 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/haberco/Easing)[ Packagist](https://packagist.org/packages/haberco/easing)[ RSS](/packages/haberco-easing/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Easing Formulas
===============

[](#easing-formulas)

Robert Penner's JavaScript Easing formulas () ported to PHP. Similar to jQuery Easing.

> The "Penner easing functions" have become a standard component of tweening/animation libraries in many languages, from jQuery to Processing. [http://www.google.com/#q="penner+easing](http://www.google.com/#q=%22penner+easing)"

I used this to generate an animated series of computer-generated frames generated in ImageMagick assembled with ffmpeg.

Installation
------------

[](#installation)

```
{
    "require": {
        "haberco/easing": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```
use \Haberco\Easing\Tween;

$totalFrames = 30;
$startValue = 50;
$changeInValue = 100; // final = 150, startValue + changeInValue

for($frame=0; $frame
