Created
July 15, 2014 01:00
-
-
Save Hypercubed/8f40556eb0f6eddbcca3 to your computer and use it in GitHub Desktop.
Directive-less ng-pageslide
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
.ng-pageslide { | |
z-index: 1000; | |
position: fixed; | |
width: 0; | |
height: 0; | |
-moz-transition-property: width, height; /* Firefox 4 */ | |
-webkit-transition-property: width, height; /* Safari and Chrome */ | |
-o-transition-property: width, height; /* Opera */ | |
transition-property: width, height; | |
-webkit-transition-duration: 0.5s; /* Safari */ | |
transition-duration: 0.5s; | |
} | |
.ng-pageslide-right, .ng-pageslide-left { | |
height: 100%; | |
top: 0px; | |
bottom: 0px; | |
} | |
.ng-pageslide-right { | |
right: 0px; | |
} | |
.ng-pageslide-left { | |
left: 0px; | |
} | |
.ng-pageslide-right.open, .ng-pageslide-left.open { | |
width: 350px; | |
} | |
.ng-pageslide-top, .ng-pageslide-bottom { | |
width: 100%; | |
top: 0px; | |
bottom: 0px; | |
right: 0px; | |
} | |
.ng-pageslide-top { | |
top: 0px; | |
} | |
.ng-pageslide-bottom { | |
bottom: 0px; | |
} | |
.ng-pageslide-top.open, .ng-pageslide-bottom.open { | |
height: 300px; | |
} | |
.ng-pageslide > div, .ng-pageslide.open-remove > div { | |
display: none; | |
} | |
.ng-pageslide.open > div { | |
display: block; | |
} | |
.ng-pageslide.open-add > div { | |
display: none; | |
} |
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
<div class="ng-pageslide ng-pageslide-left" ng-class="{'open': panels.state }"> | |
<div id="ui"> | |
CONTENT | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment