I am working on a Web site for a restaurant, and as the menu page is somewhat expansive (I am putting the full menu on the site since it is not changed very often), I added some links at the top that jump to specific sections. Even so, the sections near the bottom are somewhat short, and it can be tricky to tell which one you actually jumped to. Setting a :target selector for the headings works, but I don't like the fact that whatever effect I use to distinguish the header never actually goes away.
Is it possible to use jQuery to apply a "yellow fade" effect to an element when it is targeted by an internal link, so that you can tell where you jumped but it doesn't stay around and clutter the page?
以上就是Yellow fade effect on internal link?的详细内容，更多请关注web前端其它相关文章！