CDE

CDE

cde.qfox.nl

cde.qfox.nl

cde.qfox.nl

The CDE javascript is syntactic sugar that helps creating DHTML easier and faster by creating Custom DOM Elements.

var i=0,d=-1,c;
CDE.wrap('outer').rel().oh().h(130);
c = CDE.wrap('content').wsp().abs(0,0);

setInterval(function(){
  var pos = c.pos(true);
  if (d<0 && (pos.y-13) < -pos.h) d = -d;
  if (d>0 && (pos.y+13) > pos.h) d = -d;
  c.ease({top: pos.y+(13 * d)});
},1100);