dielduarte / animate-css-styled-components

simple port of animate css for styled-components

Home Page:https://dielduarte.github.io/animate-css-styled-components/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use with reactstrap modal

ehdgua01 opened this issue · comments

commented

reactstrap: 8.0.0
styled-components: 4.2.0
animate-css-styled-components: 1.0.2

i use Modal component under Animate component but that is not working
How shall I do it?

commented

How about setting up an animation target?

hey! could you provide an example? hosted in somewhere or repository that I can see the actual code. thanks!

commented

how about this?

<Animate Animation=[Bounce] duration="1s" delay="0.1s" targetClassName="modal-content">
    <Modal />
</Animate>

my guess is that I'm not passing external props to the animate component as you are using targetClassName and that prop aren't propagated. I'll do some tests and if is that the problem it's easy to solve.

commented

you are right. reactstrap modal is under the wrapper component
If it solve, Can you let me know?
thank you.