react-router-transition icon indicating copy to clipboard operation
react-router-transition copied to clipboard

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

Open Lathryx opened this issue 3 years ago • 1 comments

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 avatar Mar 18 '21 19:03 Lathryx