Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

marginLeft not a functioning property #6

Open
daredoes opened this issue Mar 6, 2018 · 0 comments
Open

marginLeft not a functioning property #6

daredoes opened this issue Mar 6, 2018 · 0 comments

Comments

@daredoes
Copy link

daredoes commented Mar 6, 2018

This block runs but throws an error
<CSSTransition defaultStyle={{ "margin-left": 0 }} enterStyle={{ "margin-left": transit(200, 250, "linear")}} leaveStyle={{ "margin-left": transit(0, 250, "linear")}} activeStyle={{ "margin-left": 200 }} active={this.state.showSider} >
This block throws no errors, but does not run.
<CSSTransition defaultStyle={{ marginLeft: 0 }} enterStyle={{ marginLeft: transit(200, 250, "linear")}} leaveStyle={{ marginLeft: transit(0, 250, "linear")}} activeStyle={{ marginLeft: 200 }} active={this.state.showSider} >

For some reason, marginLeft is not getting converted into margin-left before being inserted into the CSS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant