PHPackages                             jsila/animate - 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. jsila/animate

ActiveLibrary

jsila/animate
=============

Simple PHP wrapper around Animate.css

0.1.0(11y ago)031MITPHPPHP &gt;=5.3.0

Since Jun 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/JSila/Animate)[ Packagist](https://packagist.org/packages/jsila/animate)[ RSS](/packages/jsila-animate/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Animate
=======

[](#animate)

A simple PHP wrapper around Animate.css. It generates string of classes based on which animation you specify as a method to a `Animate` class instance. For all animations please refer to [GitHub page for Animate.css](http://daneden.github.io/animate.css/).

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

[](#installation)

You can install this package via Composer by including the following in your `composer.json`:

```
{
    "require": {
        "jsila/animate": "0.1.0"
    }
}
```

It depends on `php>=5.4` and `Animate.css`.

### Laravel 4

[](#laravel-4)

If you are using Laravel 4, you can also register the `AnimateServiceProvider` for easier integration with the framework.

To do so, just update the `providers` array in your `app/config/app.php`:

```
    'providers' => array(
        //...
        'JSila\Animate\AnimateServiceProvider'
    ),
```

`AnimateServiceProvider` will also add alias for `Animate` facade.

Usage with Laravel
------------------

[](#usage-with-laravel)

For example, if you want `zoomIn` animation (for which the output will be `animated zoomIn`), you will get it like this:

```
    Animate::zoomIn();
```

You can also provide options when generating class string for a specific animation. These options are:

```
$options = [
    'infinite', // boolean
    'duration', // string
    'delay', // string
    'direction', // string
    'iteration-count' // int
];
```

Please note that last four options are CSS3 `animations` properties so specify values accordingly.

Each option will add another class to the class string. Some classes are already defined in `Animate.css`, some are generated dinamically and are accessible from URL which points to CSS.

For example, if you want `zoomIn` animation to run infinitely and is delayed for 0.2s, than this code will do the trick:

```
    Animate::zoomIn(['infinite' => true, 'delay' => '.2s']);
```

If you use Laravel 4, that url to CSS defaults to `/css/animate_custom_classes.css` (you can change it, just publish package configurationd).

### Usage as a stand-alone

[](#usage-as-a-stand-alone)

Classes that are dynamically created are stored in session variable `classes`. You will first need to make an implementation of `JSila\Animate\SessionInterface` interface which is a dependency to `JSila\Animate\Animate` class (eg. `MySession`).

Than you will also have to generate CSS response. `JSila\Animate\Animate` class provides `generateCSS` method, which generates CSS string of classes, but this does not act as a response.

Stand-alone example:

```
$animate = new JSila\Animate\Animate(new Acme\Animate\Session\MySession); // this assumes MySession class is saved in Acme/Animate/Session
$animate->zoomIn(['infinite' => true, 'delay' => '.2s']);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4366d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1804602?v=4)[Jernej Sila](/maintainers/JSila)[@JSila](https://github.com/JSila)

---

Top Contributors

[![JSila](https://avatars.githubusercontent.com/u/1804602?v=4)](https://github.com/JSila "JSila (11 commits)")

---

Tags

AnimationsAnimate.css

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jsila-animate/health.svg)

```
[![Health](https://phpackages.com/badges/jsila-animate/health.svg)](https://phpackages.com/packages/jsila-animate)
```

###  Alternatives

[baschte/content-animations

TYPO3 CMS extension to have some fun and animate your content elements

2083.5k](/packages/baschte-content-animations)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
