Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You don't have a color change from red to green.
There are 2 blocks, one is red, the other is green, and their display changes. (Although I didn't achieve the appearance of the red block in your code)
display is not animated using transition, only opacity, or JS / JQ.
with display transition it will not work better change the color of the parent .qqq
codepen.io/webmasterotboga/pen/GNyQWg
you think right through media, and flexbox will help you, which will greatly simplify the layout
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question