Download the PHP package smnandre/easing-functions without Composer

On this page you can find all versions of the php package smnandre/easing-functions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package easing-functions

Easing & Timing PHP Functions

composer require smnandre/easing-functions
[![PHP Version](https://img.shields.io/badge/%C2%A0php-%3E%3D%208.3-777BB4.svg?logo=php&logoColor=white)](https://github.com/smnandre/easing-functions/blob/main/composer.json) [![CI](https://github.com/smnandre/easing-functions/actions/workflows/CI.yaml/badge.svg)](https://github.com/smnandre/easing-functions/actions) [![Release](https://img.shields.io/github/v/release/smnandre/easing-functions)](https://github.com/smnandre/easing-functions/releases) [![License](https://img.shields.io/github/license/smnandre/easing-functions?color=cc67ff)](https://github.com/smnandre/easing-functions/blob/main/LICENSE) [![Codecov](https://codecov.io/gh/smnandre/easing-functions/graph/badge.svg?token=RC8Z6F4SPC)](https://codecov.io/gh/smnandre/easing-functions)

EasingFunctions is a PHP library that provides a collection of easing functions commonly used in animations, transitions, and smooth interpolations.

It includes standard easing equations: quadratic, cubic, quartic, quintic, sine, exponential, circular, elastic, and bounce functions.

Each of them is available in three variations:

Easing Functions

x In Out InOut
Cubic
easeInCubic

easeOutCubic

easeInOutCubic
Quart
easeInQuart

easeOutQuart

easeInOutQuart
Quad
easeInQuad

easeOutQuad

easeInOutQuad
Quint
easeInQuint

easeOutQuint

easeInOutQuint
Sine
easeInSine

easeOutSine

easeInOutSine
Expo
easeInExpo

easeOutExpo

easeInOutExpo
Circ
easeInCirc

easeOutCirc

easeInOutCirc
Back
easeInBack

easeOutBack

easeInOutBack
Bounce
easeInBounce

easeOutBounce

easeInOutBounce
Elastic
easeInElastic

easeOutElastic

easeInOutElastic

Installation

Usage

Functions

Easing Functions

Name Formulae Preview
easeOutCubic $1 - pow(1 - x, 3)$
easeInOutCubic $x < 0.5 ? 4 * pow(x, 3) : 1 - pow(-2 * x + 2, 3) / 2$
easeInQuart $pow(x, 4)$
easeOutQuart $1 - pow(1 - x, 4)$
easeInOutQuart $x < 0.5 ? 8 * pow(x, 4) : 1 - pow(-2 * x + 2, 4) / 2$
easeInCubic $pow(x, 3)$
easeInQuad $x * x$
easeOutQuad $1 - (1 - x) * (1 - x)$
easeInOutQuad $x < 0.5 ? 2 * x * x : 1 - pow(-2 * x + 2, 2) / 2$
easeInQuint $pow(x, 5)$
easeOutQuint $1 - pow(1 - x, 5)$
easeInOutQuint $x < 0.5 ? 16 * pow(x, 5) : 1 - pow(-2 * x + 2, 5) / 2$
easeInSine $1 - cos((x * pi()) / 2)$
easeOutSine $sin((x * pi()) / 2)$
easeInOutSine $-(cos(pi() * x) - 1) / 2$
easeInExpo $x == 0 ? 0 : pow(2, 10 * x - 10)$
easeOutExpo $x == 1 ? 1 : 1 - pow(2, -10 * x)$
easeInOutExpo $x == 0 ? 0 : x == 1 ? 1 : x < 0.5 ? pow(2, 20 * x - 10) / 2 : (2 - pow(2, -20 * x + 10)) / 2$
easeInCirc $1 - sqrt(1 - pow(x, 2))$
easeOutCirc $sqrt(1 - pow(x - 1, 2))$
easeInOutCirc $x < 0.5 ? (1 - sqrt(1 - pow(2 * x, 2))) / 2 : (sqrt(1 - pow(-2 * x + 2, 2)) + 1) / 2$
easeInBack $2.70158 * pow(x, 3) - 1.70158 * pow(x, 2)$
easeOutBack $1 + 2.70158 * pow(x - 1, 3) + 1.70158 * pow(x - 1, 2)$
easeInOutBack $x < 0.5 ? (pow(2 * x, 2) * ((3.59258 * 2 * x) - 2.59258)) / 2 : (pow(2 * x - 2, 2) * ((3.59258 * (x * 2 - 2)) + 2.59258) + 2) / 2$
easeInBounce $1 - easeOutBounce(1 - x)$
easeOutBounce See bounceOut function
easeInOutBounce $x < 0.5 ? (1 - easeOutBounce(1 - 2 * x)) / 2 : (1 + easeOutBounce(2 * x - 1)) / 2$
easeInElastic $x == 0 ? 0 : x == 1 ? 1 : -pow(2, 10 * x - 10) * sin((x * 10 - 10.75) * ((2 * pi()) / 3))$
easeOutElastic $x == 0 ? 0 : x == 1 ? 1 : pow(2, -10 * x) * sin((x * 10 - 0.75) * ((2 * pi()) / 3)) + 1$
easeInOutElastic $x == 0 ? 0 : x == 1 ? 1 : x < 0.5 ? -(pow(2, 20 * x - 10) * sin((20 * x - 11.125) * ((2 * pi()) / 4.5))) / 2 : (pow(2, -20 * x + 10) * sin((20 * x - 11.125) * ((2 * pi()) / 4.5))) / 2 + 1$

License

This project is licensed under the MIT License. See the LICENSE file for more information.


All versions of easing-functions with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package smnandre/easing-functions contains the following files

Loading the files please wait ....