css transition not working on dialog box
问题 I am trying to figure out why the fade in and out of a dialog box in this code is not working properly. What I'm trying to do is having a fade in and out on click. But I am trying to do this fade in/out with CSS only though. When i remove manually the class "active" in the console the effect works, but not when I actually click on the link (to open the dialog box). This is my code CSS: .modal { display: block; overflow: auto; overflow-y: scroll; position: fixed; top: 0; right: 0; bottom: 0;