CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
JavaScript Jungle
Smooth scroll with Chrome on a Mac
ajlohman
Permalink to comment
#
April 2012
OK, I've created a demo smooth scroll page from the Jquery plugin
https://github.com/kswedberg/jquery-smooth-scroll
For some reason the top nav doesn't work in Chrome on a Mac but the bottom nav works just fine. No idea why? It works in Chrome in a PC.
Here's the demo link:
http://andrewlohman.com/smooth-scroll/index.html
Any help would be greatly appreciated.
Thanks,
karlpcrowley
Permalink to comment
#
April 2012
Hey, the problem is your links use IDs instead of Classes
IDs should be unique so the second one can cause conflict, some browsers work anyway
Add a Comment
For some reason the top nav doesn't work in Chrome on a Mac but the bottom nav works just fine. No idea why? It works in Chrome in a PC.
Here's the demo link: http://andrewlohman.com/smooth-scroll/index.html
Any help would be greatly appreciated.
Thanks,
IDs should be unique so the second one can cause conflict, some browsers work anyway