1.0.2 • Published 8 months ago

@nahana/react-easy-ease v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Full README Coming Soon

REACT-EASY-EASE

About

@nahana/react-easy-ease is an easy to use animation preset library. The package includes numerous easing presets that can be used in React animation libraries such as Motion or as CSS transition cubic-bezier values.

Full Documentation & Demos

Visit the React Easy Ease docs for full documentation as well as previews to each preset.

Installation

npm i @nahana/react-easy-ease

#or

yarn add @nahana/react-easy-ease

#or

pnpm @nahana/react-easy-ease

Usage

React With Motion

import { motion } from 'motion/react'

/** IMPORT EASE PRESET  */
import { RP_EaseInOutBack } from 'react-easy-ease'

export const Animate = () => {
	return (
		<motion.div
			initial={{ scale: 0, opacity: 0 }}
			animate={{ scale: 10, opacity: 1 }}
			transition={{
				duration: 0.5,
				ease: RP_EaseInOutBack,
			}}
		>
			I ZOOM IN
		</motion.div>
	)
}

CSS

/** IMPORT PACKAGE VARS */
@import url('@nahana/react-easy-ease/css');

a {
	color: #fff;
	transition: color 0.5 var(--RP_EaseInOutBack);
}

VALUES

Robert Penner Easing Functions

CSS interpretations by Matthew Lein

PRESET
Ease In QuadRP_EaseInQuad
Ease In CubicRP_EaseInCubic
Ease In QuartRP_EaseInQuart
Ease In QuintRP_EaseInQuint
Ease In SineRP_EaseInSine
Ease In ExpoRP_EaseInExpo
Ease In CircRP_EaseInCirc
Ease In BackRP_EaseInBack
Ease Out QuadRP_EaseOutQuad
Ease Out CubicRP_EaseOutCubic
Ease Out QuartRP_EaseOutQuart
Ease Out QuintRP_EaseOutQuint
Ease Out SineRP_EaseOutSine
Ease Out ExpoRP_EaseOutExpo
Ease Out CircRP_EaseOutCirc
Ease Out BackRP_EaseOutBack
Ease In Out QuadRP_EaseInOutQuad
Ease In Out CubicRP_EaseInOutCubic
Ease In Out QuartRP_EaseInOutQuart
Ease In Out QuintRP_EaseInOutQuint
Ease In Out SineRP_EaseInOutSine
Ease In Out ExpoRP_EaseInOutExpo
Ease In Out CircRP_EaseInOutCirc
Ease In Out BackRP_EaseInOutBack

Google Material

PRESET
Emphasized DecelerateGM_EmphasizedDecelerate
Emphasized AccelerateGM_EmphasizedAccelerate
StandardGM_Standard
StandardDecelerateGM_StandardDecelerate
StandardAccelerateGM_StandardAccelerate

Andrew Embury

Homepage: yellowlab.tv

Instagram: @yellowlabtv

PRESET
Smooth OperatorAE_SmoothOperator
Endless BummerAE_EndlessBummer
Get AroundAE_GetAround
Unknown SoldierAE_UnknownSoldier
Spanish CaravanAE_SpanishCaravan
Five to OneAE_FiveToOne
Wild in The StreetsAE_WildInTheStreets
DanielAE_Daniel
Crocodile TearsAE_CrocodileTears
Crystal ShipAE_CrystalShip
10ccAE_10Cc
BishopAE_Bishop
Scarborough FairAE_ScarboroughFair
Tulsa TimeAE_TulsaTime
Norwegian SkogAE_NorwegianSkog
Weird FishesAE_WeirdFishes
Brave StrangersAE_BraveStrangers
Stranger Than DictionAE_StrangerThanDiction
The GamblerAE_TheGambler
Cracklin RoseAE_CracklinRose

Cedits & Thanks

License

2025 Nate Mitchell, MIT

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago