fix anim server render

pull/383/head
yiminghe 9 years ago
parent a085adcf05
commit fb43a1b86d

@ -1,4 +1,7 @@
import velocity from 'velocity-animate';
let velocity;
if (typeof document !== 'undefined' && typeof window !== 'undefined') {
velocity = require('velocity-animate');
}
function animate(node, show, transitionName, done) {
let ok;
@ -37,4 +40,4 @@ const animation = {
},
};
export default animation;
module.exports = animation;

Loading…
Cancel
Save