Bulma: How to animate modal show / hide ?

Created on 25 Jun 2016  路  2Comments  路  Source: jgthms/bulma

Hi,

is there a way to animate the modal show and hide ?
I tried using transform css rules without success. I also tried using flex-grow.

For example: how can I animate my modal by fading and scaling up when activating it ?

Regards

Most helpful comment

how can I animate my modal by fading and scaling up when activating it ?

Using https://daneden.github.io/animate.css/ animate.css:

import animate.css, then just add the classes animated fadeIn to your modal like so:
<div id="yourmodalidhere" class="modal animated fadeIn">

Don't use transitions, because they are also active if it is hidden. Keyframes only will be executed if the element is not hidden.

scaling up

? Do you mean the Zoom-IN animation of animate.css?

All 2 comments

how can I animate my modal by fading and scaling up when activating it ?

Using https://daneden.github.io/animate.css/ animate.css:

import animate.css, then just add the classes animated fadeIn to your modal like so:
<div id="yourmodalidhere" class="modal animated fadeIn">

Don't use transitions, because they are also active if it is hidden. Keyframes only will be executed if the element is not hidden.

scaling up

? Do you mean the Zoom-IN animation of animate.css?

Perfect :-)

Yes I meant Zoom-In animation when saying "scaling-up".

Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rogervila picture rogervila  路  3Comments

Wikiki picture Wikiki  路  3Comments

jaredreich picture jaredreich  路  3Comments

dotMastaz picture dotMastaz  路  3Comments

swthate picture swthate  路  3Comments