In this jsFiddle: https://jsfiddle.net/ptba8Lzd/
I have done everything correctly so that the properties being changed with addClass
will do so smoothly (using transition: all 2.5s ease-out;
).
You can see this working fine with the height
property. However, when switching from one transient to another, it does so abruptly. Why? How can I switch smootly between these two?
linear-gradient(to bottom, #25211e 0%, rgba(37, 33, 30, 0) 100%);
linear-gradient(to bottom, #25211e 0%, rgba(37, 33, 30, 255) 100%);