Home  >  Q&A  >  body text

javascript - How to achieve smooth switching of pop-up windows in JS?

For example, if you click on a page, a pop-up window will pop up. The content in the pop-up window has a button, and clicking will pop up a dialog box. At this time, the dialog box is not a pop-up effect, but a smooth transition. How to write it?

世界只因有你世界只因有你2711 days ago595

reply all(7)I'll reply

  • PHPz

    PHPz2017-05-18 10:58:53

    I don’t understand what over-smoothing means.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-18 10:58:53

    To provide an idea, the opacity of the first pop-up window gradually changes from 1 to 0, and the opacity of the second pop-up window gradually changes from 0 to 1.

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-18 10:58:53

    Is it okay to write slow motion effects with a time difference?

    reply
    0
  • PHP中文网

    PHP中文网2017-05-18 10:58:53

    Set a time, for example, the pop-up window will be completed within one or two seconds

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-18 10:58:53

    transition: all 0.3s;

    Give animation

    reply
    0
  • PHP中文网

    PHP中文网2017-05-18 10:58:53

    css3 Animation

    reply
    0
  • 某草草

    某草草2017-05-18 10:58:53

    jq a fadeIn a fadeOut

    reply
    0
  • Cancelreply