Yellow fade effect on internal link?

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏