D
D
dhat2016-12-02 00:36:52
css
dhat, 2016-12-02 00:36:52

How to animate block appearance in media queries?

Or rather, how to animate the color change from red to green? Put transition to everything - doesn't work)))
codepen.io/dhatt/pen/eByypJ

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Ankhena, 2016-12-02
@dhat

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.

S
Sergei Nazarenko, 2016-12-02
@nazares

https://css-tricks.com/snippets/css/keyframe-anima...

G
gotohell, 2016-12-02
@gotohell

with display transition it will not work better change the color of the parent .qqq
codepen.io/webmasterotboga/pen/GNyQWg

Z
Zamir Yusupov, 2017-03-28
@id717891

you think right through media, and flexbox will help you, which will greatly simplify the layout

X
Xenia, 2017-03-28
@TGNC

put the house in the background and two blocks, float:left and float:right, with indents from the edges,
and for the container itself, set the maximum and minimum width
https://jsfiddle.net/TGNC/7fjvznfd/1/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question