ant-design/site/theme/template/Home/Page4.jsx

24 lines
907 B
React
Raw Normal View History

2016-03-03 17:23:08 +08:00
import React from 'react';
import TweenOne from 'rc-tween-one';
import { FormattedMessage } from 'react-intl';
2016-03-03 17:23:08 +08:00
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
2016-03-30 19:14:09 +08:00
import QueueAnim from 'rc-queue-anim';
2016-03-03 17:23:08 +08:00
export default function Page4() {
return (
2016-07-08 17:33:25 +08:00
<ScrollOverPack scrollName="page4" className="content-wrapper page"
playScale={1} hideProps={{ image: { reverse: true } }}
>
<QueueAnim className="text-wrapper-bottom" delay={300} key="text" duration={550}
leaveReverse type="bottom"
>
<h2 key="h2"><FormattedMessage id="app.home.sub-slogan" /></h2>
<p key="p"><FormattedMessage id="app.home.vision" /></p>
</QueueAnim>
<TweenOne key="image" className="image4 bottom-wrapper" animation={{ y: 0, opacity: 1, duration: 550, delay: 550 }}
2016-07-08 17:33:25 +08:00
style={{ transform: 'translateY(50px)', opacity: 0 }}
/>
</ScrollOverPack>
);
2016-03-03 17:23:08 +08:00
}