GithubHelp home page GithubHelp logo

downwindcss / easings Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 854 KB

Tailwind CSS preset to extend Tailwind CSS's Transition Timing Function

Home Page: https://www.npmjs.com/package/@downwindcss/easings

License: MIT License

TypeScript 80.53% JavaScript 18.56% CSS 0.91%
tailwindcss npm npm-package typescript javascript cjs tsdx

easings's Introduction

@downwindcss/easings

A Tailwind CSS Preset to extend Transition Timing Functions (easings).

Usage

Once you install and configure (steps below), you can access new easings via ease-* prefix.

Note: Most of easings are available in https://easings.net/ except some because the preset uses postcss-easings internally.

ease-in-back
ease-in-circ
ease-in-cubic
ease-in-expo
ease-in-out-back
ease-in-out-circ
ease-in-out-cubic
ease-in-out-expo
ease-in-out-quad
ease-in-out-quart
ease-in-out-quint
ease-in-out-sine
ease-in-quad
ease-in-quart
ease-in-quint
ease-in-sine
ease-out-back
ease-out-circ
ease-out-cubic
ease-out-expo
ease-out-quad
ease-out-quart
ease-out-quint
ease-out-sine

Installation

$ npm install --save-dev @downwindcss/easings
# Or using a short-form flag
$ npm install -D @downwindcss/easings

Using yarn.

$ yarn add --dev @downwindcss/easings
# or
$ yarn add -D @downwindcss/easings

Configuration

Add the preset, @downwindcss/easings to the Tailwind CSS configuration file, tailwind.config.js.

module.exports = {
  presets: [require('@downwindcss/easings')],
  // rest of configuration...
};

Examples

Check out Chromatic (Storybook) link, https://www.chromatic.com/library?appId=603ee5eb3e3e1c00231fcf04&branch=main

easings's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

easings's Issues

feat: Convert the preset into plugin.

I didn't know the difference between a preset and a plugin at the time of the creation.

This fits more as a plugin so convert it so with a major version update.

Doesn't compile

I got this error when trying to use it in nextjs with postcss:

Require stack:
- C:\Users\azaz2\OneDrive\Documentos\github\spotify-api-challenge\node_modules\.pnpm\@[email protected]\node_modules\@downwindcss\easings\dist\easings.cjs.development.js
- C:\Users\azaz2\OneDrive\Documentos\github\spotify-api-challenge\node_modules\.pnpm\@[email protected]\node_modules\@downwindcss\easings\dist\index.js
- C:\Users\azaz2\OneDrive\Documentos\github\spotify-api-challenge\tailwind.config.cjs
- C:\Users\azaz2\OneDrive\Documentos\github\spotify-api-challenge\node_modules\.pnpm\[email protected][email protected]\node_modules\tailwind-config-viewer\cli\index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\azaz2\OneDrive\Documentos\github\spotify-api-challenge\node_modules\.pnpm\@[email protected]\node_modules\@downwindcss\easings\dist\easings.cjs.development.js:3:22)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.