Merge pull request #897 from ant-design/home-scroll-full

update home full screen scroll
This commit is contained in:
afc163 2016-01-20 17:39:09 +08:00
commit e44bcaa7e4
2 changed files with 9 additions and 7 deletions

View File

@ -100,7 +100,7 @@
"lodash": "^3.10.0",
"nico-jsx": "~0.7.0",
"pre-commit": "1.x",
"rc-scroll-anim": "^0.1.1",
"rc-scroll-anim": "^0.1.5",
"rc-tween-one": "^0.1.8",
"react": "0.14.x",
"react-addons-test-utils": "0.14.x",

View File

@ -4,6 +4,7 @@ import { QueueAnim, Icon, Button } from '../index';
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
import ScrollLink from 'rc-scroll-anim/lib/ScrollLink';
import ScrollElement from 'rc-scroll-anim/lib/ScrollElement';
import scrollScreen from 'rc-scroll-anim/lib/ScrollScreen';
import TweenOne from 'rc-tween-one';
module.exports = function() {
@ -24,15 +25,16 @@ module.exports = function() {
$(window).off('scroll.scrollNavEvent');
$(window).on('scroll.scrollNavEvent', scrollNavEvent);
// 整屏滚动;
scrollScreen({docHeight: 4746});
// list point
ReactDOM.render((
<div>
<ScrollLink className="list-point" location="banner" showHeightActive="50%"/>
<ScrollLink className="list-point" location="page1" showHeightActive="50%"/>
<ScrollLink className="list-point" location="page2" showHeightActive="50%"/>
<ScrollLink className="list-point" location="page3" showHeightActive="50%"/>
<ScrollLink className="list-point" location="page4" showHeightActive="50%"/>
<ScrollLink className="list-point" location="banner"/>
<ScrollLink className="list-point" location="page1"/>
<ScrollLink className="list-point" location="page2"/>
<ScrollLink className="list-point" location="page3"/>
<ScrollLink className="list-point" location="page4"/>
</div>
), document.getElementById('list'));