impress.js via React ð
Install Usage ComponentsReact-impressJS have two components: <Impress />
and <Step />
, as same as impress.js.
<Impress />
contains the root of impress and the camera, then put <Step />
inside impress component, magic happens â¨
Quick NavigationWhat's impress.js!?
It's an awesome presentation framework power of CSS3 transorms and transitions, please check THIS first!!
You can use Spacebar or Arrow keys to navigate, and here's all the keys for navigation:
â
or â
or PageUp
: Go to the previous Step.
â
or â
or Space
or PageDown
: Go to the next Step.
Home
: Go to the first Step.
End
: Go to the last Step.
Basic Usep.s. You can also Click the Step directly.
API Impress props name type description default rootData Object setting impress basic config defaults fallbackMessage String or Element fallback message is only visible when there isimport { Impress, Step } from 'react-impressjs';
Â
<Impress fallbackMessage={<p>Sorry, your <b>device or browser</b> couldn't support well.</p>}>
    <Step id={'overview'} />Â
    <Step id={'any_id'} className={'class_name'} />
    <Step className={'without_id_is_ok'}Â
          data={
            {
                x:100,
                y:-100,
                scale:2
            }}/>
    <Step duration={1500}>
        <h1>Any Element write in Step!</h1>
        <hr />
        <p>Made by your <b>Creativity</b> !!</p>
    </Step>
</Impress>
impress-not-supported
- hintOn Boolean display hint or not true hintMessage String or Element hint for presentation - progressOn Boolean progress of presentation false
Step props name type description default id String id of dom node "step-" + ~timestamp~ idHelper(counter of Step) className String additional css class of step dom node '' data Object setting Step's presentation defaultData duration number define duration of the transition in ms 1000const defaults = {
    width: 1024,
    height: 768,
    maxScale: 1,
    minScale: 0,
    perspective: 1000,
    transitionDuration: 1000
};
Styleconst defaultData = {
  x: 0,      Â
  y: 0,      Â
  z: 0,      Â
  rotateX: 0,Â
  rotateY: 0,Â
  rotateZ: 0,Â
  scale: 1   Â
};
Currently, you can use style of impress.js or React-impressJS in your app:
import 'react-impressjs/styles/impress-demo.css';
Â
import 'react-impressjs/styles/react-impressjs.css';
DevelopmentIf you have the better one, I'm glad you can share with us, expect yours! ðð
This Component is still under development, if you have any suggestion, you could tell me in issue or fork this repo ðª
LicenseReact-impressJS is released under the MIT license.
This project was bootstrapped with Create React App.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4