项目作者: utarit

项目描述 :
Simple and beautiful welcome component for React apps. You can use this tool to make easy your life
高级语言: CSS
项目地址: git://github.com/utarit/react-welcome-page.git
创建时间: 2018-07-03T07:17:42Z
项目社区:https://github.com/utarit/react-welcome-page

开源协议:

下载


REACT WELCOME PAGE

Simple beautiful welcome screen for your React and React Native apps.
https://github.com/utarit/react-welcome-page

Example

React Web App

Example Screen

  1. <Welcome
  2. data={
  3. [
  4. {
  5. "backgroundColor": "rgb(73, 49, 91)",
  6. "textColor": "#EE79EA",
  7. "imageAnimation": "flipInX",
  8. "image": require('./images/1.png')
  9. },
  10. {
  11. "backgroundColor": "rgb(252, 187, 19)",
  12. "textColor": "#754600",
  13. "text": "My App",
  14. "imageAnimation": "slideInUp",
  15. "textAnimation": "slideInLeft",
  16. "image": require('./images/2.png')
  17. },
  18. {
  19. "backgroundColor": "rgb(156, 196, 76)",
  20. "textColor": "#344115",
  21. "text": "Green Elephant",
  22. "image": require('./images/3.png')
  23. },
  24. {
  25. "backgroundColor": "rgb(4, 116, 188)",
  26. "textColor": "#FFFFFF",
  27. "text": "Save the World",
  28. "textAnimation": "fadeInUp",
  29. "image": require('./images/4.png')
  30. }
  31. ]
  32. }
  33. ></Welcome>

Smart Color Picking Tool

To ease your work, you can use this tool to generate your component easily.

https://utarit.github.io/react-welcome-page-color-form/

Installing

  1. npm install --save react-welcome-page

Using

  1. import Welcome from 'react-welcome-page'
  2. ...
  3. render(){
  4. return(
  5. <div id='my-container'>
  6. <Welcome
  7. loopDuration={1100}
  8. data={[
  9. {
  10. image: require('./image_path/mypic1.png),
  11. text: 'My Quote',
  12. imageAnimation: 'flipInX',
  13. textAnimation: 'bounce',
  14. backgroundColor: '#FF3354',
  15. textColor: '#002134'
  16. },
  17. {
  18. image: require('./image_path/mypic2.png),
  19. text: 'My Quote',
  20. },
  21. {
  22. image: require('./image_path/mypic3.png),
  23. textAnimation: 'rotateIn'
  24. }
  25. ]}
  26. ></Welcome>
  27. ...Rest of the app
  28. </div>
  29. )}

Table of Contents

Prop Requirement Default Type
loopDuration not required 1000 (ms) number
image required - require(‘path of image’) or ‘http:// imageurl.png’ (I suggest using a local image)
text not required ‘’ string
imageAnimation not required ‘rotateIn’ string* (Only Web)
textAnimation not required ‘fadeInDown’ string* (Only Web)
backgroundColor not required ‘whitesmoke’ string as HEX ‘#123456’ or RGB ‘rgb(219, 123, 97)’
textColor not required ‘whitesmoke’ string as HEX ‘#123456’ or RGB ‘rgb(219, 123, 97)’

*Animations taken from animate.css (https://daneden.github.io/animate.css/), you can only use these animations.

*In React Native, you do not have animation options