Tried to replace with Codepen code