Giter VIP home page Giter VIP logo

impress-react-component's Introduction

impress-react-component

Impress.js simple components for React

You can use the component easily, first thing to do is to install the package:

npm install impress-react-component

Then import and work with it in your react application, for example:

import React from 'react'
import ReactDOM from 'react-dom'
import { Presentation, Slide } from 'impress-react-component'

class App extends React.Component {
  render () {
    return (
      <Presentation>
        <Slide y={500} z={100}>
          <h1>Hello</h1>
        </Slide>
        <Slide rotate={90}>
          <h1>Impress</h1>
        </Slide>
      </Presentation>
    );
  }
};

ReactDOM.render(<App />, document.body)

Here's a list of components you can use:

###Presentation The main component which includes all other impress components, you need this to define a new presentation

Presentation props:

  • style: styling the main div of presentation [object]
  • width: a global width for all slides of presentation [number]
  • height: a global height for all slides of presentation [number]

###Slide Defines a slide of your presentation

Slide props:

  • id: slide id [string]
  • style: styling the main div of slide [object]
  • position: Slide's position in an object like {x: 10, y: 20, z: 30} or array like [10, 20, 30] [object or array]
  • x: Slide's position-x [number]
  • y: Slide's position-y [number]
  • z: Slide's position-z [number]
  • rotation: Slide's rotation in an object like {x: 10, y: 20, z: 30} or array like [10, 20, 30] [object or array]
  • rotateX: Slide's rotation-x [number]
  • rotateY: Slide's rotation-y [number]
  • rotateZ: Slide's rotation-z [number]
  • width: width of slide's main div [number]
  • height: height of slide's main div [number]

===

###(Work on progress)

impress-react-component's People

Contributors

alireza29675 avatar

Watchers

 avatar  avatar

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.