JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 96
  • Score
    100M100P100Q101766F
  • License MIT

CSS easings as CSS vars

Package Exports

  • easings

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (easings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Easings

NPM version Build status Test coverage Dependency Status License Downloads Gittip

rework-ease, except without the rework dependency and it is intended to be used as CSS variables. For more information on easings, go to http://easings.net.

API

var easings = require('easings')

css = easings(css)

Replace all the var(<ease>) variable references with the actual easing function. Note that this is a really simple regexp-replace.

easings('transition: var(ease-in-back);')
// => 'transition: cubic-bezier(0.600, -0.280, 0.735, 0.045);'

easings.css

Since this library uses the CSS Variables specifications, easings.css is simply the :root object you would use to define all these easings. Thus, you'll eventually be able to do just append easings.css to your build and do var(ease-in-cubic). This is also available as /index.css.

@import 'https://nlz.io/github/reworkcss/easings/1/index.css';

body {
  transition: all var(ease-in-back);
}

easings.map

Map of <name>: <value> for all the easings.