简体   繁体   中英

How use combined class style as inline Style in Reactjs

I want add cssTransition styles using inline style in react. But some styles couldn't add.

Example:

.example-enter.example-enter-active {
  opacity: 1;
  transition: opacity 500ms ease-in;
}

I tried with

 'exampleEnter-exampleEnterActive': {
   opacity: 1,
   transition: opacity 500ms ease-in
 }

But it not work, anybody can help. Thanks in advance.

您将需要Radium之类的东西才能使它正常工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM