Packages

Advanced configurable navigation component for Phoenix LiveView with native DaisyUI integration, Tailwind CSS support, permissions filtering, dropdowns, mega menus, and modern responsive design. Optimized for Phoenix 1.8+ and LiveView 1.1+.

Current section

Files

Jump to
navbuddy assets node_modules culori src easing smoothstep.js
Raw

assets/node_modules/culori/src/easing/smoothstep.js

/*
Smoothstep easing function and its inverse
Reference: https://en.wikipedia.org/wiki/Smoothstep
*/
const easingSmoothstep = t => t * t * (3 - 2 * t);
const easingSmoothstepInverse = t => 0.5 - Math.sin(Math.asin(1 - 2 * t) / 3);
export { easingSmoothstep, easingSmoothstepInverse };