use rc-queue-anim in site

This commit is contained in:
afc163 2016-03-30 19:14:09 +08:00
parent 261661bffe
commit 7d3ce97cc8
5 changed files with 9 additions and 5 deletions

View File

@ -4,7 +4,8 @@ import ScrollElement from 'rc-scroll-anim/lib/ScrollElement';
import TweenOne from 'rc-tween-one'; import TweenOne from 'rc-tween-one';
import GitHubButton from 'react-github-button'; import GitHubButton from 'react-github-button';
import 'react-github-button/assets/style.css'; import 'react-github-button/assets/style.css';
import { QueueAnim, Icon } from '../../../'; import { Icon } from '../../../';
import QueueAnim from 'rc-queue-anim';
export default class Banner extends React.Component { export default class Banner extends React.Component {
typeFunc(a) { typeFunc(a) {

View File

@ -2,7 +2,8 @@ import React from 'react';
import { Link } from 'react-router'; import { Link } from 'react-router';
import TweenOne from 'rc-tween-one'; import TweenOne from 'rc-tween-one';
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack'; import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
import { QueueAnim, Icon, Button } from '../../../'; import { Icon, Button } from '../../../';
import QueueAnim from 'rc-queue-anim';
const clientHeight = document.documentElement.clientHeight; const clientHeight = document.documentElement.clientHeight;
function onScrollEvent(e) { function onScrollEvent(e) {

View File

@ -2,7 +2,8 @@ import React from 'react';
import { Link } from 'react-router'; import { Link } from 'react-router';
import TweenOne from 'rc-tween-one'; import TweenOne from 'rc-tween-one';
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack'; import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
import { QueueAnim, Icon, Button } from '../../../'; import { Icon, Button } from '../../../';
import QueueAnim from 'rc-queue-anim';
export default class Page2 extends React.Component { export default class Page2 extends React.Component {
render() { render() {

View File

@ -2,7 +2,8 @@ import React from 'react';
import { Link } from 'react-router'; import { Link } from 'react-router';
import TweenOne from 'rc-tween-one'; import TweenOne from 'rc-tween-one';
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack'; import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
import { QueueAnim, Icon, Button } from '../../../'; import { Icon, Button } from '../../../';
import QueueAnim from 'rc-queue-anim';
export default class Page3 extends React.Component { export default class Page3 extends React.Component {
render() { render() {

View File

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import TweenOne from 'rc-tween-one'; import TweenOne from 'rc-tween-one';
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack'; import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
import { QueueAnim } from '../../../'; import QueueAnim from 'rc-queue-anim';
export default class Page4 extends React.Component { export default class Page4 extends React.Component {
render() { render() {