Optimized website header
Rough implementation of smoothState