3 Star 5 Fork 2

K. / webpack-tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 683 Bytes
一键复制 编辑 原始数据 按行查看 历史
K. 提交于 2016-05-18 23:45 . init
var test = require('./test');
var ReactDOM = require('react-dom');
var React = require('react');
var HelloWorld = require('./hello_world.jsx');
require('./style.css');
require('./hello.styl');
var doc = document, body = doc.body;
body.onload = function() {
var el = doc.createElement('div');
el.style.opacity = 0;
el.style.marginTop = '-100px';
el.style.transitionProperty = 'opacity margin-top';
el.style.transitionDuration = '800ms';
el.style.transitionTimingFunction = 'cubic-bezier(0.65,-0.1, 0.24, 1.47)';
body.appendChild(el);
ReactDOM.render(React.createElement(HelloWorld), el);
setTimeout(function() {
el.style.opacity = 1;
el.style.marginTop = 0;
}, 1);
};
NodeJS
1
https://gitee.com/janpoem/webpack-tutorial.git
git@gitee.com:janpoem/webpack-tutorial.git
janpoem
webpack-tutorial
webpack-tutorial
master

搜索帮助