Posted By

cfleschhut on 06/26/10


Tagged

javascript CSS3


Versions (?)

mini-pico-tiny convenience micro-framework


 / Published in: JavaScript
 

URL: http://jsfiddle.net/s73Pu/

  1. function $(id) { return document.getElementById(id); }
  2. function html(id, html) { $(id).innerHTML = html; }
  3. function css(id, style) { $(id).style.cssText += style; }
  4. function anim(id, transform, opacity, dur) {
  5. css(id, "-webkit-transition: -webkit-transform, opacity " + (dur||0.5) + "s, " + (dur||0.5) + "s; -webkit-transform: " + transform + "; opacity: " + (opacity||1));
  6. }

Report this snippet  

You need to login to post a comment.