javascript - How to achieve smooth switching of pop-up windows in JS?
世界只因有你
世界只因有你 2017-05-18 10:56:53
0
7
592

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?

世界只因有你
世界只因有你

reply all(7)
PHPzhong

I don’t understand what over-smoothing means.

洪涛

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.

phpcn_u1582

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

Ty80

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

大家讲道理

transition: all 0.3s;

Give animation

洪涛

css3 Animation

某草草

jq a fadeIn a fadeOut

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!