Skip to content

Commit 4eea97b

Browse files
committed
fixed transitions
1 parent c2319af commit 4eea97b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/Layout/styles.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ const styles = theme => ({
2323
main: {
2424
paddingTop: '0px',
2525
display: 'flex',
26+
transition: theme.transitions.create(['margin'], {
27+
easing: theme.transitions.easing.sharp,
28+
duration: theme.transitions.duration.leavingScreen,
29+
}),
30+
backgroundColor: 'red',
2631
},
2732
mainFixedAppBar: {
2833
marginTop: '64px',
@@ -33,7 +38,7 @@ const styles = theme => ({
3338
mainShift: {
3439
marginLeft: drawerWidth,
3540
width: `calc(100% - ${drawerWidth}px)`,
36-
transition: theme.transitions.create('margin', {
41+
transition: theme.transitions.create(['margin'], {
3742
easing: theme.transitions.easing.easeOut,
3843
duration: theme.transitions.duration.enteringScreen,
3944
}),

0 commit comments

Comments
 (0)