Animation when opening and closing modals?

Tony
16 Posts
Tony posted this 23 January 2023
Wishlist

Would it be possible to animate the opening of modals?

Also to close the modal when clicking on the background?

Would it be possible to animate the opening of modals? Also to close the modal when clicking on the background?

Last edited 23 January 2023 by Tony

Vote to pay developers attention to this features or issue.
6 Replies
Order By: Standard | Newest
xvemanuelvx
362 Posts
xvemanuelvx posted this 23 January 2023

Nicepage does not support it, unfortunately.

I am unsure, but maybe it will work with Custom CSS.

https://webcode.tools/generators/css/keyframe-animation

Nicepage does not support it, unfortunately. I am unsure, but maybe it will work with Custom CSS. https://webcode.tools/generators/css/keyframe-animation
Support Team posted this 24 January 2023

Hi Anthony,

Thanks for the suggestions, we'll add them to our wishlist.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Anthony, Thanks for the suggestions, we'll add them to our wishlist. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
JiminiSauer
7 Posts
JiminiSauer posted this 25 January 2023

Make a modal with no background-color, so that it's invisible. Place a box in the modal with the desired background and animate the box. Place all the stuff you need inside the box. The whole modal resp. the box with everything in it is animated. The transition of the shading is still hard, but everything else seems a bit smoother.

Make a modal with no background-color, so that it's invisible. Place a box in the modal with the desired background and animate the box. Place all the stuff you need inside the box. The whole modal resp. the box with everything in it is animated. The transition of the shading is still hard, but everything else seems a bit smoother.
Tony
16 Posts
Tony posted this 25 January 2023

Make a modal with no background-color, so that it's invisible. Place a box in the modal with the desired background and animate the box. Place all the stuff you need inside the box. The whole modal resp. the box with everything in it is animated. The transition of the shading is still hard, but everything else seems a bit smoother.

I like it, is that what's called "thinking inside the box" lol

Thanks

> Make a modal with no background-color, so that it's invisible. Place a box in the modal with the desired background and animate the box. Place all the stuff you need inside the box. The whole modal resp. the box with everything in it is animated. The transition of the shading is still hard, but everything else seems a bit smoother. I like it, is that what's called "thinking inside the box" lol Thanks

Last edited 25 January 2023 by Tony

xvemanuelvx
362 Posts
xvemanuelvx posted this 26 January 2023

With this code you can animate the complete popup. The shadow as well as the popup, without having to include a box. You can only give the popup a background color.

Add the code in the Global CSS of the Nicepage page. You can find it in the site settings.

    .u-dialog-open {
    animation: fadein 0.5s ease 0s 1 normal forwards;
}

@keyframes fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
With this code you can animate the complete popup. The shadow as well as the popup, without having to include a box. You can only give the popup a background color. Add the code in the Global CSS of the Nicepage page. You can find it in the site settings. .u-dialog-open { animation: fadein 0.5s ease 0s 1 normal forwards; } @keyframes fadein { 0% { opacity: 0; } 100% { opacity: 1; } }
Tony
16 Posts
Tony posted this 26 January 2023

With this code you can animate the complete popup. The shadow as well as the popup, without having to include a box. You can only give the popup a background color.

Add the code in the Global CSS of the Nicepage page. You can find it in the site settings.

    .u-dialog-open {
  animation: fadein 0.5s ease 0s 1 normal forwards;
}

@keyframes fadein {
  0% {
      opacity: 0;
  }

  100% {
      opacity: 1;
  }
}

Thanks xvemanuelvx, that works a treat

> With this code you can animate the complete popup. The shadow as well as the popup, without having to include a box. You can only give the popup a background color. > > Add the code in the Global CSS of the Nicepage page. You can find it in the site settings. > > .u-dialog-open { > animation: fadein 0.5s ease 0s 1 normal forwards; > } > > @keyframes fadein { > 0% { > opacity: 0; > } > > 100% { > opacity: 1; > } > } Thanks xvemanuelvx, that works a treat
You must log in or register to leave comments