-
Notifications
You must be signed in to change notification settings - Fork 578
FAQ
Imogen Wentworth edited this page Jan 8, 2016
·
19 revisions
Yes, but it's not recommended for animations other than Slide due to how other page elements are designed to move with the transition.
You can access it through the bmMenuWrap key of the styles prop:
var styles = {
bmMenuWrap: {
transition: ''
}
}
<Menu styles={ styles } />react-burger-menu uses Radium to manage its styles. To use the Link component, you need to wrap it in Radium first, like this:
import React from 'react';
import { stack as Menu } from 'react-burger-menu';
import { Link } from 'react-router';
import Radium from 'radium';
let RadiumLink = Radium(Link);
export default React.createClass({
render() {
return (
<Menu>
<RadiumLink className="menu-item" to="/home">Home</RadiumLink>
<RadiumLink className="menu-item" to="/settings">Settings</RadiumLink>
<RadiumLink className="menu-item" to="/blablabla">Blablabla</RadiumLink>
</Menu>
);
}
});