Kevin Powell - CommunityKP-C
Kevin Powell - Community16mo ago
28 replies
Brightie

Transition on modal.close()

Trying to createa fade out() on my modal when it closes, so that it doesn't just blink out of existence. (the closing is a function as I have multiple dialogs so being able to just call a function is more straightforward and easy to read)
Using animation doesn't seem to work, I had put an animation in multiple manners, first I tried modal[close], then I tried to just add a class having an animation .close
While also putting the closing in a timeout setTimeOut(closing, 4000)to ensure it would have time to run, didn't seem to work

then I read online that it should be with transition, but I can't get transition to work properly for some reason ... I am probably doing it wrong
image.png
image.png
Was this page helpful?