Code Monkey home page Code Monkey logo

react-welcome-page's Introduction

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

<Welcome
data={
		[
			{
			"backgroundColor": "rgb(73, 49, 91)",
			"textColor": "#EE79EA",
			"imageAnimation": "flipInX",
			"image": require('./images/1.png')
			},
			{
			"backgroundColor": "rgb(252, 187, 19)",
			"textColor": "#754600",
			"text": "My App",
			"imageAnimation": "slideInUp",
			"textAnimation": "slideInLeft",
			"image": require('./images/2.png')
			},
			{
			"backgroundColor": "rgb(156, 196, 76)",
			"textColor": "#344115",
			"text": "Green Elephant",
			"image": require('./images/3.png')
			},
			{
			"backgroundColor": "rgb(4, 116, 188)",
			"textColor": "#FFFFFF",
			"text": "Save the World",
			"textAnimation": "fadeInUp",
			"image": require('./images/4.png')
			}
		]
}
/>

Smart Color Picking Tool

To ease your work, you can use this tool to generate your <Welcome ... /> component easily.

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

Installing

npm install --save react-welcome-page

Using

import Welcome from 'react-welcome-page'

...
  

render(){

return(
<div id='my-container'>
<Welcome
		loopDuration={1100}
		data={[
		{
		image: require('./image_path/mypic1.png),
		text: 'My Quote',
		imageAnimation: 'flipInX',
		textAnimation: 'bounce',
		backgroundColor: '#FF3354',
		textColor: '#002134'
		},
		{
		image: require('./image_path/mypic2.png),
		text: 'My Quote',
		},
		{
		image: require('./image_path/mypic3.png),
		textAnimation: 'rotateIn'
		}
	]}

/>

...Rest of the app

  
</div>
)}

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

react-welcome-page's People

Contributors

dependabot[bot] avatar gaetandezeiraud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-welcome-page's Issues

Image resizing

The following code:

  img {
    height: 100px;
    width: 100px;
  }

It's a problem. Because it resizes all the images of the project. Outside this module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.