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.
Table of contents
Download smnandre/easing-functions
More information about smnandre/easing-functions
Files in smnandre/easing-functions
Download smnandre/easing-functions
More information about smnandre/easing-functions
Files in smnandre/easing-functions
Vendor smnandre
Package easing-functions
Short Description Easing & Timing Functions - Cubic-Bezier, EaseIn, Quad ...
License MIT
Package easing-functions
Short Description Easing & Timing Functions - Cubic-Bezier, EaseIn, Quad ...
License MIT
Please rate this library. Is it a good library?
Informations about the package easing-functions
Easing & Timing 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)
composer require smnandre/easing-functions
EasingFunctions is a PHP library that provides easing functions for animations, transitions, etc/
x | In | InOut | Out |
---|---|---|---|
Cubic | easeInCubic |
easeInOutCubic |
easeOutCubic |
Quart | easeInQuart |
easeInOutQuart |
easeOutQuart |
Quad | easeInQuad |
easeInOutQuad |
easeOutQuad |
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 $ |
Time Comparison
Function | 12.5% | 25% | 37.5% | 50% | 62.5% | 75% | 87.5% |
---|---|---|---|---|---|---|---|
OutQuart | ██ | ███▎ | ████ | ████▌ | ████▊ | ████▊ | ████▊ |
OutCubic | █▌ | ██▊ | ███▊ | ████▎ | ████▌ | ████▊ | ████▊ |
OutQuad | █ | ██ | ███ | ███▊ | ████▎ | ████▌ | ████▊ |
InOutQuad | ▌ | █▎ | ██▌ | ███▌ | ████▎ | ████▊ | |
InOutCubic | ▎ | █ | ██▌ | ███▊ | ████▌ | ████▊ | |
InOutQuart | ▊ | ██▌ | ████ | ████▊ | ████▊ | ||
InQuad | ▎ | ▌ | █▎ | █▊ | ██▊ | ███▊ | |
InCubic | ▎ | ▌ | █ | ██ | ███▎ | ||
InQuart | ▎ | ▊ | █▌ | ██▊ |
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
The package smnandre/easing-functions contains the following files
Loading the files please wait ....