0.1.2 • Published 10 years ago

ianus v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

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.