diff --git a/README.md b/README.md index cd222dc..0b07ceb 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,10 @@ +@@ -1,90 +1,90 @@ # Space.js A HTML-driven JavaScript-library for narrative 3D-scrolling. - See the demos [here](http://www.slashie.org/space.js/) - **NOTE THAT SHOULD BE CONSIDERED TO BE BETA SOFTWARE** *Production use is not recommended at this point.* - ## Usage - **Import the library** ```html @@ -19,19 +16,13 @@ See the demos [here](http://www.slashie.org/space.js/) ``` - The library is HTML-driven, which means that you don't need to write a single line of JavaScript to use it on your site and still have a lot of flexibility! - The core of the library is to divide our HTML into frames, or *space-frames* as we call them her (to not conflict the common class name "frame"). - - ### Creating a frame ```html
[contents]
``` - I would also **strongly** recommend using an inner-frame inside the space-frame, which provides some helpful CSS to make things centered both vertically and horizontally inside the frame. - ```html
@@ -39,36 +30,26 @@ I would also **strongly** recommend using an inner-frame inside the space-frame,
``` - ### Custom duration If we want we can provide a custom duration for our frames with the data-duration attribute, which multiplies the default duration of the transition. - ```html
...
...
``` - - ### Options Space.js has a default default transition - which is to enter by fading in and exit by scaling up and fading out. We can also provide a custom transition override to the library from predefined transitions. (We can also create our own transitions from scratch, but we'll get to that later.) - ```html
...
``` - Multiple values are supported! - ```html
...
``` - ### Custom entry and exit If we really want to get into detail, we can provide how we wish the frame to enter (first half of the frame duration) and exit (second half). - ```html
...
``` - ## What a complete frame could look like ```html
@@ -85,10 +66,10 @@ If we really want to get into detail, we can provide how we wish the frame to en ## Custom transitions You can add your own transitions with the ```addTransitions`` method. Make sure it is done after the library is loaded. +You can add your own transitions with the ``addTransitions`` method. Make sure it is done after the library is loaded. ```javascript - ``` - ### Currently supported transitions Note that these might come to change during the beta-phase of the library. - - scaleIn - fadeIn - scaleOut @@ -123,4 +102,3 @@ Note that these might come to change during the beta-phase of the library. - slideBottomRight - rotate360 - rotate3dOut -