How to display content for mobile- or desktop only using WordPress “wp_is_mobile”.

Did you know that you can use WordPress built-in “mobile detect” function wp_is_mobile to create a simple shortcode that can hide certain parts of your content from mobile visitors and-/or desktop visitors. The wp_is_mobile function returns true when your site is viewed from a mobile browser. Using this function you can create adaptive-/responsive wordpress themes […]

DOMContentLoaded

For modern browsers, and IE9+, you can listen for the DOMContentLoaded event: document.addEventListener(“DOMContentLoaded”, function(){ // Handler when the DOM is fully loaded }); But, note that the callback will not be executed if the event has already fired. To make sure the callback is always run, jQuery checks the readyState of a document (reference) and, if it’s already complete, executes […]

A resource to understand how parallax scroll should works

A resource to understand how parallax scroll should works

There are many different ways to implement parallax. This  resource will let you to understand how parallax scroll should works and ho build it with css3 http://keithclark.co.uk/articles/pure-css-parallax-websites/demo3/ http://keithclark.co.uk/articles/pure-css-parallax-websites/ The parallax class is where the parallax magic happens. Defining the height and perspective style properties of an element will lock the perspective to its centre, creating […]