header#header img { transition: all 0.3s; } header#header.shrink img { max-height: 100px; transition: all 0.3s; }