ianus

0.1.2 • Public • Published

Ianus

In ancient Roman religion and myth, Janus (Latin: Ianus, pronounced [ˈjaː.nus]) is the god of beginnings and transitions, and thereby of gates, doors, doorways, passages and endings. (from Wikipedia)

Ianus provides names of CSS3 animation and transition properties to make cross-browser development easier.

In environments that don’t support animations, transitions or even a DOM, properties are simply undefined.

The provided names are:

  • transitionProperty
  • transitionDuration
  • transitionTimingFunction
  • transitionDelay
  • transition
  • transitionend – the name of the 'transitionend' event
  • css.transitionProperty – the CSS property name
  • css.transitionDuration
  • css.transitionTimingFunction
  • css.transitionDelay
  • css.transition

Build Status

Cross-browser testing is kindly provided by BrowserStack.

But this has been written before!

Indeed, but unfortunately I could not find an implementation that would run under node.js without throwing. Since I want to share view code between browser and server, I had to come up with my own solution.

Package Sidebar

Install

npm i ianus

Weekly Downloads

0

Version

0.1.2

License

ISC

Last publish

Collaborators

  • davidaurelio