forked from tapquo/Lungo.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
soyjavi
committed
Jun 16, 2013
1 parent
dd77b66
commit 7d8d209
Showing
9 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
@import "__init.styl" | ||
/** | ||
* Stylesheet | ||
* | ||
* @namespace Lungo.Animation | ||
* @class Aside | ||
BOUNCE_DIST = 8 | ||
* | ||
* @author Javier Jimenez Villar <[email protected]> || @soyjavi | ||
*/ | ||
|
||
section | ||
&[data-aside-left="show"] | ||
|
@@ -24,26 +30,24 @@ aside | |
|
||
@keyframes sectionAsideLeftShow | ||
from { transform translateX(0) } | ||
60% { transform translateX(ASIDE_WIDTH + BOUNCE_DIST) } | ||
60% { transform translateX(ASIDE_WIDTH + ASIDE_PADDING) } | ||
to { transform translateX(ASIDE_WIDTH) } | ||
|
||
@keyframes sectionAsideLeftHide | ||
from { transform translateX(ASIDE_WIDTH) } | ||
25% { transform translateX(ASIDE_WIDTH + BOUNCE_DIST) } | ||
25% { transform translateX(ASIDE_WIDTH + ASIDE_PADDING) } | ||
to { transform translateX(0) } | ||
|
||
@keyframes sectionAsideRightShow | ||
from { transform translateX(0) } | ||
60% { transform translateX(-(ASIDE_WIDTH) - BOUNCE_DIST) } | ||
60% { transform translateX(-(ASIDE_WIDTH) - ASIDE_PADDING) } | ||
to { transform translateX(-(ASIDE_WIDTH)) } | ||
|
||
@keyframes sectionAsideRightHide | ||
from { transform translateX(-(ASIDE_WIDTH)) } | ||
25% { transform translateX(-(ASIDE_WIDTH) - BOUNCE_DIST) } | ||
25% { transform translateX(-(ASIDE_WIDTH) - ASIDE_PADDING) } | ||
to { transform translateX(0) } | ||
|
||
// ============================================= | ||
|
||
@keyframes asideLeftHide | ||
from { transform translateX(0) } | ||
to { transform translateX(-(ASIDE_WIDTH)) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
@import "__init.styl" | ||
/** | ||
* Stylesheet | ||
* | ||
* @namespace Lungo.Media | ||
* @class Phone | ||
* | ||
* @author Javier Jimenez Villar <[email protected]> || @soyjavi | ||
*/ | ||
|
||
|
||
/* ==== Any phone ==== */ | ||
@media only screen and (max-width: 767px) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters