0.0.0 • Published 9 years ago

reactrotate360 v0.0.0

Weekly downloads
8
License
-
Repository
github
Last release
9 years ago

ReactRotate360

ReactRotate360 is a plugin to create 360 degree showcases. Inspired on Apple iPhone 360 showcase.

Made with React and HTML5.

Works with videos or images.

Examples

To build the examples locally, run:

npm install
gulp dev

Then open localhost:8000 in a browser.

Video GIF Demo

Video GIF Demo

Images GIF Demo

Image GID Demo

Usage

The plugin uses input[type=range] for the slide. You can check the support here.

Videos

You can use this plugin with videos (mp4, ogg or webm).

var sources = [
  'path/to/videos/video.mp4',
  'path/to/videos/video.oggtheora.ogv',
  'path/to/videos/video.webmhd.webm'
];

React.render(<Rotate src={sources} />, document.querySelector('#video'));

Images

// Render images
React.render(<Rotate type="image" path="examples/images" ext="png" total="43" />, document.querySelector('#images'));

CSS Classes

.rotate-box { }
.rotate-video { }
.rotate-image { }
.rotate-range { } /* For input[type=range] */
.rotate-range::-webkit-slider-thumb { }

Documentation

AttributeTypeUse with?DefaultDescription
srcarrayvideo-Pass an array with your videos path. The plugin will create the <source> tags.
typestringbothvideoUse video or image
pathstringimage-Pass the path of your images. The images need follow a sequence. The first image need start with 1. e.g: 1.png, 2.png, 3.png ... 30.png
extstringimagejpgThe extension of your images.
totalstring or intimage-Pass the quantity of your images.

Browser Support

IEChromeFirefoxOperaSafari
IE 10+ ✔Latest ✔Latest ✔Images ✔ Videos :(Latest ✔

On mobile, use only images.

License

No license. Use as you wish.

Copyright (c) 2015 Cezar Luiz.