maisano / react-router-transition

painless transitions built for react-router, powered by react-motion
http://maisano.github.io/react-router-transition/
MIT License
2.59k stars 139 forks source link

Is there any way to add/remove classes `atEnter`, `atLeave`, and `atActive`? #124

Open Lathryx opened 3 years ago

Lathryx commented 3 years ago

I'm attempting to add/remove a .hide class:

.hide {
    margin: 0; 
    padding: 0; 
    width: 0; 
    height: 0; 
    opacity: 0; 
}

Which essentially allows other elements to pass over the corresponding element in its atLeave state, of course given that element has this class. Then, on this element's atEnter stage, I must promptly remove this class.

Is there any known way of doing this?

Lathryx commented 3 years ago

I've also posted my problem on StackOverflow, and the app itself can be found here.