Skip to content

Commit

Permalink
clean page rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
FreakDev committed Oct 25, 2017
1 parent 7b4ec68 commit a8db803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export class Page extends Component {
const props = this.props
return (
<div style={ props.style } className="page">
<h1>{props.name}</h1>
{ props.children }
</div>
)
Expand Down
16 changes: 6 additions & 10 deletions src/PageManager.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,24 @@
width: 100%;
}

.page-appear,
.page-enter {
/* opacity: 0; */
.page {
position: relative;
top: 0;
left: 0;
height: 100%;
width: 100%;
}

.page-appear-active,
.page-enter-active {
transition: all 0.5s;
/* opacity: 1; */
}

.page-exit {
transition: all 0.5s;
/* opacity: 1; */
transform: translateX(0);
}

.page-exit-active {
/* opacity: 0; */
}




.left .page-appear,
Expand Down

0 comments on commit a8db803

Please sign in to comment.