Skip to content

Instantly share code, notes, and snippets.

@wolmhp
Last active December 10, 2015 20:58
Show Gist options
  • Select an option

  • Save wolmhp/4491712 to your computer and use it in GitHub Desktop.

Select an option

Save wolmhp/4491712 to your computer and use it in GitHub Desktop.

Revisions

  1. wolmhp renamed this gist Jan 9, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. wolmhp renamed this gist Jan 9, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. wolmhp created this gist Jan 9, 2013.
    13 changes: 13 additions & 0 deletions 动画
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    (function(){
    setTimeout(function(){
    if (iLeft < 900) {
    domEl.style['left'] = iLeft + 'px';
    iLeft += iDelta;
    iDelta = iDelta * 1;
    setTimeout(arguments.callee, 25);
    }
    else {
    domEl.style['left'] = '900px';
    }
    }, 25)
    })();