codrops / ModalWindowEffects

A set of experimental modal window appearance effects with CSS transitions and animations.
1.01k stars 239 forks source link

Issue where you have 2 modals on the same page doing different things. #5

Open jordanbrown opened 11 years ago

jordanbrown commented 11 years ago

Has anyone come up on the issue where you have 2 modals with 2 different modal ids conflicting? They both work fine but the click on the overlay doesnt close the modal that is second in the layout.

so-ale commented 11 years ago

Can you be more specific? Maybe give us an example?

I maybe facing a similar issue where I have two anchor links with data-modal attributes linked to two different ids, to open those modals. However, only the first link triggers open the modal. Second one doesn't.

Is this what you're facing?

niallthompson commented 11 years ago

Yes that is the same issue I am facing. You can only have one modal per page. Is there a workaround?

AxelBriche commented 11 years ago

Hello, kill modal content and reload modal with new content by ajax ?