Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple substep implemenation #280

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 52 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,55 @@ transitions in modern browsers and inspired by the idea behind prezi.com.
impress.js may not help you if you have nothing interesting to say ;)


HOW TO USE IT
---------------

[Use the source](https://github.com/bartaz/impress.js/blob/master/index.html), Luke ;)

If you have no idea what I mean by that, or you just clicked that link above and got
very confused by all these strange characters that got displayed on your screen,
it's a sign, that impress.js is not for you.

Sorry.

Fortunately there are some guys on GitHub that got quite excited with the idea of building
editing tool for impress.js. Let's hope they will manage to do it.



EXAMPLES AND OTHER LEARNING RESOURCES
---------------------------------------

### Official demo

[impress.js demo](http://bartaz.github.com/impress.js) by [@bartaz](http://twitter.com/bartaz)

### Examples and demos

More examples and demos can be found on [Examples and demos wiki page](https://github.com/bartaz/impress.js/wiki/Examples-and-demos).

Feel free to add your own example presentations (or websites) there.

### Other tutorials and learning resources

If you want to learn even more there is a [list of tutorials and other learning resources](https://github.com/bartaz/impress.js/wiki/impress.js-tutorials-and-other-learning-resources)
on the wiki, too.

These is also a book available about [Building impressive presentations with impress.js](http://www.packtpub.com/building-impressive-presentations-with-impressjs/book) by Rakhitha Nimesh Ratnayake.


WANT TO CONTRIBUTE?
---------------------

If you've found a bug or have a great idea for new feature let me know by [adding your suggestion]
(https://github.com/bartaz/impress.js/issues/new) to [issues list](https://github.com/bartaz/impress.js/issues).

If you have fixed a bug or implemented a feature that you'd like to share, send your pull request against [dev branch]
(https://github.com/bartaz/impress.js/tree/dev). But remember that I only accept code that fits my vision of impress.js
and my coding standards - so make sure you are open for discussion :)



ABOUT THE NAME
----------------

Expand All @@ -17,6 +66,7 @@ impress.js name in [courtesy of @skuzniak](http://twitter.com/skuzniak/status/14
It's an (un)fortunate coincidence that a Open/LibreOffice presentation tool is called Impress ;)



VERSION HISTORY
-----------------

Expand Down Expand Up @@ -175,48 +225,6 @@ with simple fallback for non-supporting browsers.



HOW TO USE IT
---------------

[Use the source](https://github.com/bartaz/impress.js/blob/master/index.html), Luke ;)

If you have no idea what I mean by that, or you just clicked that link above and got
very confused by all these strange characters that got displayed on your screen,
it's a sign, that impress.js is not for you.

Sorry.

Fortunately there are some guys on GitHub that got quite excited with the idea of building
editing tool for impress.js. Let's hope they will manage to do it.


EXAMPLES AND DEMOS
--------------------

### Official demo

[impress.js demo](http://bartaz.github.com/impress.js) by [@bartaz](http://twitter.com/bartaz)

### Other examples

More examples and demos can be found on [Examples and demos wiki page](https://github.com/bartaz/impress.js/wiki/Examples-and-demos).

Feel free to add your own example presentations (or websites) there.



WANT TO CONTRIBUTE?
---------------------

If you've found a bug or have a great idea for new feature let me know by [adding your suggestion]
(https://github.com/bartaz/impress.js/issues/new) to [issues list](https://github.com/bartaz/impress.js/issues).

If you have fixed a bug or implemented a feature that you'd like to share, send your pull request against [dev branch]
(https://github.com/bartaz/impress.js/tree/dev). But remember that I only accept code that fits my vision of impress.js
and my coding standards - so make sure you are open for discussion :)



BROWSER SUPPORT
-----------------

Expand Down Expand Up @@ -266,7 +274,7 @@ Fortunately, as these are JavaScript APIs there are polyfill libraries that patc
with these APIs.

For example IE10 is said to support CSS 3D transforms and transitions, but it doesn't have `classList`
not `dataset` APIs implemented at the moment. So including polyfill libraries *should* help IE10
nor `dataset` APIs implemented at the moment. So including polyfill libraries *should* help IE10
with running impress.js.


Expand All @@ -290,6 +298,5 @@ LICENSE

Copyright 2011-2012 Bartek Szopka

Released under the MIT and GPL Licenses.

Released under the MIT and GPL (version 2 or later) Licenses.

199 changes: 199 additions & 0 deletions css/substep.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
body {
font-family: 'Open Sans', sans-serif;
min-height: 740px;

background: rgb(215, 215, 215);
background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from(rgb(240, 240, 240)), to(rgb(190, 190, 190)));
background: -webkit-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: -moz-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: -ms-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: -o-radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
background: radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
}

#header {
position: absolute;
top: 2rem;
left: 6rem;
font-size: 1.4rem;
background-color: rgb(230, 230, 230);
border: 1px solid rgb(190, 190, 190);
border-top: 1px solid rgb(170, 170, 170);
border-left: 1px solid rgb(170, 170, 170);
padding: 8px 12px;
}

#header .blue {
color: rgb(100, 135, 195);;
}

a, a:visited {
color: rgb(100, 135, 195);
text-decoration: none;
}


h1 {
font-size: 2.2rem;
font-weight: bold;
color: rgb(100, 135, 195);
border-bottom: 1px solid #C8C8C8;
}


h2 {
margin-right: 100px;
margin-bottom: 20px;
font-size: 1.9rem;
font-weight: bold;
text-align: right;
color: rgb(100, 135, 195);
}

p {
margin: 25px 0;
margin-left: 60px;
font-size: 1.8rem;
line-height: 2rem;
}

p.note {
font-size: 1rem;
color: #666;
}

ul {
margin-left: 15%;
font-size: 1.8rem;
text-align: left;
list-style: none;
}

ul.boring-list {
list-style: disc;
}

/* forcing a width onto all steps */
.step {
position: relative;
margin: 20px auto;
width: 900px;
padding: 40px;

-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}

/*
this highlights substeps with '>'
*/
.substep:before {
content: ">";
font-weight: bold;
padding-right: 3px;
}

/* give all steps a light opacity by default */
.impress-enabled .step {
opacity: 0.2;
-webkit-transition: opacity 1s;
-moz-transition: opacity 1s;
-ms-transition: opacity 1s;
-o-transition: opacity 1s;
transition: opacity 1s;
}

/* bring steps up to full opacity when active */
.impress-enabled .step.active {
opacity: 1;
}


/*
This selector will grab all substeps in a browser that
is impress.js compatible, and set their opacity to zero.
This also sets up any property change to be transitioned
over 1 second
*/
.impress-enabled .substep {
opacity: 0;
-webkit-transition: all 1s;
-moz-transition: all 1s;
-ms-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
}

/*
if a substep gets set to active it will get an
opacity of 1, transitioned over 1 second by the
previous selector
*/
.impress-enabled .substep.active {
opacity: 1;
}

/*
when a substep has focus it is 'present'
so we add some color to make it all fancy
*/
.impress-enabled .substep.present {
color: rgb(100, 135, 195);
}

/*
this is just a silly animation for the
information overload text on the
non-substep example
*/
#non-substeps.present .overload {
display: inline-block;
-webkit-animation-timing-function: ease-out;
-webkit-animation: shazam 5s;
-webkit-animation-iteration-count: 5;
-webkit-animation-delay: 3s;
}

/*
actual animation function
*/
@-webkit-keyframes shazam {
0% {-webkit-transform: scale(0.4, 0.4) rotate(0deg); opacity: 0.3;}
50% {opacity: 1.0; }
100% {-webkit-transform: scale(1.9, 1.9) rotate(359deg); opacity: 0;}
}

/*
just setting the div substep styles
to something interesting...
containing div needs a forced height
*/
#works-on-divs-too {
height: 400px;
}

/*
position the hidden divs off screen
*/
#works-on-divs-too div {
position: absolute;
left: -500px;
font-size: 1.8rem;
}

/*
let them transition on screen when active
*/
#works-on-divs-too div.active {
position: relative;
left: 0;
margin-left: 15%
}

.right {
float: right;
}

Loading