transition not working display none

Solutions on MaxInterview for transition not working display none by the best coders in the world

showing results for - "transition not working display none"
Martín
05 Feb 2017
1/*short answer:
2 use 'visibility' instead of 'display' */
3
4
5/*explanation: */
6/* THIS DOES NOT WORK --> */
7
8.navigation__quaternary {
9   display: none;
10   opacity: 0;
11   transform: scale(0.75);
12   transition: 
13     opacity 350ms cubic-bezier(0.19, 1, 0.22, 1) 0ms, 
14     transform 350ms cubic-bezier(0.19, 1, 0.22, 1) 0ms;
15}
16
17.navigation__quaternary:hover {
18      display: block;
19      opacity: 1;
20      transform: scale(1);
21}
22
23/* THIS WORKS --> */
24
25.navigation__quaternary {
26   visibility: hidden;
27   opacity: 0;
28   transform: scale(0.75);
29   transition: 
30     opacity 350ms cubic-bezier(0.19, 1, 0.22, 1) 0ms, 
31     transform 350ms cubic-bezier(0.19, 1, 0.22, 1) 0ms;
32}
33
34.navigation__quaternary:hover {
35      visibility: visible;
36      opacity: 1;
37      transform: scale(1);
38}
39
40/* I think is happens because 'display:none' elements are considered 
41not in the dom and thus browser cannot process transition */
queries leading to this page
transition in my css is not workingtransition css not workingdisplay none transition not working csstransition doesn work with display nonetransition 0s not workingcss position not working transitiontransition hidden not workingtransition not working with display nonecss transition are not workingcss transition not workingtransition not working on displaysection transition css not worktransform transition not working csscss while in transition do not displaytransition doesnt work on displaytransition css is not workingcss transition not working both wayswhy transition is not working in csstransition not worktransition none not workingcss transition display none not workingwhy transition not workingtransition not showing csstransition not working on display nonetransition display to visible but not position changedisplay none transition not workinghide transition not workingtransition propert not working csstransition not working css for height with display felxdisplay 3a none transition not workingd none hide show trasitionmy css transition not workingwhy are my css transition not workingtransition position not workingcss transition not working when class addedwhy transition don 27t work with displaytransition not workingtransition all not workingcss transition display not workingtransition not working wit insettransition on display not workingtransition display not workingwhy is my transition not working csstransition not working css when arrive divtransition doesn 27t work for display 3anone to display 3ablocktransition not working css when div display and hodentransition not working display nonewhy is transition not working csstransition not working csscss transition is not workingcss transition not working with display nonecss display none transition not workingtransition property not workking for displaytransition doesn 27t working with display nonetransition is not working cssjs smooth display nonedisplay none to visible css not doing transitiontransition property not workingtransition on display css not workingtransition is not workingon display trasitionjs display 3d none transitionwhy css transition not workingtransition display not workwhy css transition not working display nonedispaly none and transition doesnt workcss3 transition not workingcss transition not working properlytransition will working on display noneopacity transition is not working with display nonewhy transition property not workingin css after some time display nonetransition not working display none