use attr 'opacity' to replace different bg-color on navbar-search