#jQuery

Scroll To Top Button

Adding a scroll-to-top button creates a conveniant way for readers to get back to your top navigation, especially for a lengthy page on a mobile screen. Below is an example of a scroll-to-top button that appears when scrolling down a specific distance and disappers when scrolled back to the top. Make sure you have the jQuery script at the bottom of your page. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>... [Read More]

For a better user experience, especially on a mobile screen, the fixed navigation bar takes precious screen real estate that can be used for content. I’ve created a couple of jQuery code samples that can be used for different scenarios. Make sure you have the jQuery script at the bottom of your page to make these work. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> Tip: It’s best practice to store... [Read More]