GitHub - im4aLL/chromeSmoothScroll: Smooth scrolling for chrome browser. Responsive Sticky Sidebar. Edit fiddle. How to detect a click outside an element? Typekit/webfontloader: Web Font Loader gives you added control when using linked fonts via @font-face. Dynamically load google fonts after page has loaded. How to Improve Page Performance with a Font Loader. A big thanks to Jason Pamental for the inspiration to write this article. I’d never have considered the issue otherwise! When was the last time you used Arial, Times New Roman, Helvetica or … shudder … Comic Sans in your web pages? Web fonts took too long to arrive but, once they did, we never looked back. Fonts are fun, (often) free and fast to implement: @import url( You can then use the font throughout your pages, e.g.
This is when the fallback web font, say Georgia, is shown on screen first then replaced by a custom font when it loaded. They argued that it would make for a more cohesive browsing experience if users simply waited for everything to download instead of experiencing this flash from one typeface to another. But today this is not the case. In fact, this practice of letting a browser hide all the text that should be styled with a custom font is now called the ‘Flash of Invisible Text’, or FOIT, and is often regarded as the worst of all possible options.
When we build responsive websites that aim for mobile devices, sometimes we want to include specific and extra capabilities for users to make use of its multi-touch capability. Pin it But before that, we need to first identify if the device has support for touch interaction, and it is easy to do so with Modernizr. Check out: Getting Started with Modernizr Feature Detection with Modernizr At the Modernizr download page, ensure that the Touch Event option is selected.
The following example will alert the user when he scrolls on any element that has a class ‘notify’: One can pass a second argument to the waypoint function, which is an options object. In the example above we express the offset as a percentage of the viewport’s height. But what if I want staggered animations? Edit fiddle. Edit fiddle. Edit fiddle. Jquery - Animate.css + Viewport Checker delay?