Answer the question
In order to leave comments, you need to log in
How to remove size during animation?
My block looks at the state:
<div className={this.state.isBonus ? "checkout__bonus-types--active": "checkout__bonus-types"}>
</div>
checkout__bonus-types {
opacity: 0;
transform: translate3d(0, -20%, 0);
transition: all 0.5s ease-out;
}
checkout__bonus-types--active {
opacity: 1;
transform: translate3d(0, 0, 0);
transition: all 0.3s ease-out;
}
opacity: 0;
transform: translate3d(0, -20%, 0);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question