visionmedia / move.js

CSS3 backed JavaScript animation framework
http://visionmedia.github.com/move.js/
4.72k stars 686 forks source link

Example 1 in examples/docs.html is not working #72

Open axelpale opened 9 years ago

axelpale commented 9 years ago

The public documentation at visionmedia.github.io/move.js/ uses version 0.3.2 (open console & type move.version) and there Example 1 works as expected. However if you clone 0.4.0 and open examples/docs.html all the other examples work as expected but Example 1 does not do anything.

I did not yet found any reason why this happens. Others experiencing the same issue?

yinjun1991 commented 8 years ago

I think the code of example-1 has some problems. It should be like this: move('#example-1 .box').set('margin-left', "200px").end(); don`t forget the 'px';

JimYan commented 8 years ago

The master applyProperties Code is: Move.prototype.applyProperties = function(){ for (var prop in this._props) { this.el.style.setProperty(prop, this._props[prop], ''); } return this; };

But the page http://visionmedia.github.io/move.js/ is: Move.prototype.applyProperties = function(){ css(this.el, this._props); return this; };