UNPKG

@zapperwing/pinterest-view

Version:

A Pinterest-style grid layout component for React.js with responsive design, dynamic content support, and bulletproof virtualization

45 lines (44 loc) 1.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.linear = exports.easeOutQuint = exports.easeOutQuart = exports.easeOutQuad = exports.easeOutCubic = exports.easeInQuint = exports.easeInQuart = exports.easeInQuad = exports.easeInOutQuint = exports.easeInOutQuart = exports.easeInOutQuad = exports.easeInOutCubic = exports.easeInCubic = void 0; var linear = exports.linear = function linear(t) { return t; }; var easeInQuad = exports.easeInQuad = function easeInQuad(t) { return t * t; }; var easeOutQuad = exports.easeOutQuad = function easeOutQuad(t) { return t * (2 - t); }; var easeInOutQuad = exports.easeInOutQuad = function easeInOutQuad(t) { return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t; }; var easeInCubic = exports.easeInCubic = function easeInCubic(t) { return t * t * t; }; var easeOutCubic = exports.easeOutCubic = function easeOutCubic(t) { return --t * t * t + 1; }; var easeInOutCubic = exports.easeInOutCubic = function easeInOutCubic(t) { return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1; }; var easeInQuart = exports.easeInQuart = function easeInQuart(t) { return t * t * t * t; }; var easeOutQuart = exports.easeOutQuart = function easeOutQuart(t) { return 1 - --t * t * t * t; }; var easeInOutQuart = exports.easeInOutQuart = function easeInOutQuart(t) { return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t; }; var easeInQuint = exports.easeInQuint = function easeInQuint(t) { return t * t * t * t * t; }; var easeOutQuint = exports.easeOutQuint = function easeOutQuint(t) { return 1 + --t * t * t * t * t; }; var easeInOutQuint = exports.easeInOutQuint = function easeInOutQuint(t) { return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t; };