diff --git a/package.json b/package.json
index c19acd4878..4e2c001647 100644
--- a/package.json
+++ b/package.json
@@ -70,6 +70,8 @@
"warning": "~2.1.0"
},
"devDependencies": {
+ "rc-scroll-anim": "0.0.5",
+ "rc-tween-one": "0.1.5",
"autoprefixer-loader": "^3.1.0",
"babel-cli": "^6.2.0",
"babel-core": "^6.2.1",
diff --git a/scripts/home.js b/scripts/home.js
index 29e83b3651..bfd45e296e 100644
--- a/scripts/home.js
+++ b/scripts/home.js
@@ -1,8 +1,110 @@
const React = require('react');
const ReactDOM = require('react-dom');
+import { QueueAnim, Icon, Button } from '../index';
+import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
+import EventDispatcher from 'rc-scroll-anim/lib/EventDispatcher';
+import TweenOne from 'rc-tween-one';
+const DivId = ['page4', 'page3', 'page2', 'page1', 'banner'];
+const header = document.getElementById('header');
+DivId.forEach(id=> {
+ const page = document.createElement('section');
+ page.id = id;
+ if (id.indexOf('page') >= 0) {
+ page.className = 'page';
+ }
+ document.body.insertBefore(page, header.nextSibling);
+});
+
+// 导航处理;
+function scrollNavEvent() {
+ const scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
+ const clientHeight = document.documentElement.clientHeight;
+ if (scrollTop >= clientHeight) {
+ header.className = header.className.indexOf('home-nav-bottom') >= 0 ? header.className : header.className + ' home-nav-bottom';
+ } else {
+ header.className = header.className.replace(/home-nav-bottom/ig, '');
+ }
+}
+
+EventDispatcher.addEventListener('scroll.scrollNavEvent', scrollNavEvent);
+
+class Banner extends React.Component {
+ constructor() {
+ super(...arguments);
+ }
+
+ typeFunc(a) {
+ if (a.key === 'line') {
+ return 'right';
+ } else if (a.key === 'button') {
+ return 'bottom';
+ }
+ return 'left';
+ }
+
+ render() {
+ return (
+ V1.0 一套面向中后台的设计解决方案ANT DESIGN
近一年的蚂蚁中后台设计实践,积累了大量的优秀案例。
+ +为中后台设计中反复出现的问题提供一套相应的解决方案
+ +为中后台设计中反复出现的问题提供一套相应的解决方案
+ +为中后台设计中反复出现的问题提供一套相应的解决方案
+