background preloader

One page website

One page website
Once in a while, something new shows up that has the power to shake the world and stimulate all people to keep moving instead of stay still, this quote applies for practically every instance in life and business. A while ago, Nike released an astonishing website named “Nike Better World” to support all the athletes around the world; the design itself was brilliant and it generated a lot of positive reviews, but the real breakthrough came thanks to the navigation system that these guys made, a fantastic vertical Parallax system. On this tutorial we’re going to undress the structure of this website and then we’re going to create something inspired by Nike’s website using jQuery and CSS. View Demo Download Source This tutorial is a practical exercise, created with the only intention of explore the functionality behind the “Nike Better World” website, all the credits belong entirely to Nike. How does it work? Understanding the “Nike” effect Step 1: Insert the HTML Step 2: Working with jQuery

jquery Scroll event in $(window), find out the position difference Zoom sur l'effet parallaxe Après avoir abordé les arrière-plans extensibles (full background) nous allons continuer avec l'effet parallaxe. Cet effet graphique étant facile à comprendre et à mettre en place, vous allez pouvoir créer rapidement un site original. Ce tutoriel va utiliser jQuery ainsi que le plug-in jQuery-Parallax. Qu'est-ce que l'effet parallaxe ? Il s'agit d'un terme générique correspondant au déplacement de plusieurs éléments sur des couches et à des vitesses différentes. Des exemples Utilisant le positionnement de la souris digitalhands.net bikingboss.com Utilisant le niveau du scroll nikebetterworld.com ok-studios.de driver-club Principe et théorie Grâce à l'utilisation de JavaScript, il est possible de déplacer les éléments par rapport à la position de la souris ou du niveau de défilement (scroll). Illustration pour le scroll Avec une même distance de scroll, l'élément a aura parcouru une distance plus faible que l'élément b. Illustration pour le positionnement de la souris En pratique Démonstration

Parallax Tutorials. Roundup from DesignFloat The WOW effect is the very thing that can make the public interested in your online project. You can achieve this effect using parallax, for instance. Today’s roundup features Parallax Tutorials that can teach you how to create cool parallax effects using clear examples. Following them step by step, you’ll learn how to develop the awesome websites that will attract plenty of visitors. Browse this tiny but useful collection of Parallax Tutorials and try them in order to start your own effective projects! Building a Parallax Scrolling Storytelling Framework jQuery Parallax Tutorial – Animated Header Background Create a Funky Parallax Background Effect with jQuery Create a Realistic Camera Move with Parallax Parallax Mapping Tutorial Parallax Scrolling Tutorial Parallax Slider with jQuery The Parallax Effects with jQuery Tutorial Awesome 3D Parallax Background Effect with jQuery Tutorial Parallax Serial Terminal

Exemples de site Internet avec défilement Parallax L’utilisation de l’effet de parallaxe ou effet de défilement parallaxe dans les sites Internet peuvent ajouter une belle illusion de profondeur trois dimensions pour la conception de site web et donc rendre la visite de l’internaute très intéressante. Dans la conception web, l’effet de parallaxe est une tendance relativement nouvelle. L’effet de la parallaxe est la technique qui comporte des images en couches, qui se déplacent autour du site par différentes vitesses et perspectives afin de créer une illusion agréable et intéressant 3D. Voici donc une sélection de site Internet utilisant l’effet parallaxe : cultural solutions uk Campaign Monitor is Hiring International Watch Co Nike Better World Old Pulteney Row to the Pole Webdesign Karlsruhe YEBO Creative Head2Heart Len M iutopia Arnaud OLIVIER Créateur du site www.web-geek.fr, je suis webmaster et spécialisé dans plusieurs domaines du web comme le référencement de site Internet et les réseaux sociaux.

Learning from Twitter An issue popped up on Twitter this past week that caused the web site to be generally unusable for many users. It appears as if attempts to scroll were unbearably slow and caused the site to be unresponsive. The Twitter team investigated and determined that if they reverted the version of jQuery that they used back to 1.4.2 from 1.4.4 the site would be responsive again. After more investigation they determined that the code that was slow was doing a contextual selector search for an item by class name, for example: $something.find(".class"). So – what happened? However, as with every performance change, while some things get way faster some things can also get slower. What’s interesting here is that we’ve been using querySelectorAll for our default selector engine in jQuery for quite some time now (doing $(‘.class’) would use querySelectorAll). This brings up the important point: Just how much faster is getElementsByClassName compared to querySelectorAll? So. Comments are closed.

Parallax Scrolling and Its Usage in Web Design The parallax effect, also called parallax scrolling, is a special technique used in computer graphics at first, where background images move by the camera slower than foreground images. This is the actual concept where websites with parallax scrolling started. It was widely used in the gaming industry more than 10-15 years ago and it is still used today in different domains. In the past years the parallax effect started to be used widely in web design. Its popularity went through the clouds when Nike redesigned their website based on this concept. The design concept started to be used because it is actually quite cool. Parallax Scrolling Examples Although this is usually the case, utilizing the parallax scrolling effect doesn’t have to limit you to a fake 3D effect. When they see it for the first time, people use to think that the effect is nice. Performance Issues Although the effect looks brilliant, there are some downsides to it, such as the performance issues. New age technologies

jQuery.parallax Download git clone github.com/stephband/jparallax Instantiation jQuery( '.parallax-layer' ).parallax( options ); What does jquery.parallax do? jParallax turns nodes into absolutely positioned layers that move in response to the mouse. With a bit of CSS you can either set up windows to see these layers through, or leave them free to roam about. The diagram on the right illustrates what jParallax does to the html: and here's a demonstration with some images: More demos demos/index.html demos/stalkbuttons.html - multiple parallax. demos/remotecontrol.html - parallax by remote control. demos/thumbnails.html - beautiful interactive thumbnails. demos/target.html - demonstrates how smoothly jParallax handles window resizing. Using jParallax The default behaviour of jParallax is to show the whole width of a layer in response to the mouse travelling the whole width of the mouseport. There are various ways to style jParallax effectively. Options Layer Options Events

ColorBox A lightweight customizable lightbox plugin for jQuery View Demos Released under the MIT License, source on Github (changelog) Download Install via NPM npm install jquery-colorbox Compatible with: jQuery 1.3.2+ in Firefox, Safari, Chrome, Opera, Internet Explorer 7+ Supports photos, grouping, slideshow, ajax, inline, and iframed content.Lightweight: 10KB of JavaScript (less than 5KBs gzipped).Appearance is controlled through CSS so it can be restyled.Can be extended with callbacks & event-hooks without altering the source files.Completely unobtrusive, options are set in the JS and require no changes to existing HTML.Preloads upcoming images in a photo group.Currently in use on a million-plus websites. Instructions & Help The FAQ has instructions on asking for help, solutions to common problems, and how-to examples. Usage Colorbox accepts settings from an object of key/value pairs, and can be assigned to any HTML element. Settings Public Methods Event Hooks Hey,

Masked Input Plugin First, include the jQuery and masked input javascript files. Next, call the mask function for those items you wish to have masked. jQuery(function($){ $("#date").mask("99/99/9999"); $("#phone").mask("(999) 999-9999"); $("#tin").mask("99-9999999"); $("#ssn").mask("999-99-9999");}); Optionally, if you are not satisfied with the underscore ('_') character as a placeholder, you may pass an optional argument to the maskedinput method. Optionally, if you would like to execute a function once the mask has been completed, you can specify that function as an optional argument to the maskedinput method. You can now supply your own mask definitions. jQuery(function($){ $.mask.definitions['~']='[+-]'; $("#eyescript").mask("~9.99 ~9.99 999");}); You can have part of your mask be optional. jQuery(function($){ $("#phone").mask("(999) 999-9999? If your requirements aren't met by the predefined placeholders, you can always add your own. jQuery(function($){ $("#phone").mask("#hhhhhh");});

tipsy Overview Tipsy is a jQuery plugin for creating a Facebook-like tooltips effect based on an anchor tag's title attribute. Examples & Usage Basic By default, tooltips will appear centred underneath their anchor: Hover over me Basic example: Gravities Using the gravity parameter, it's possible to control the positioning of the tooltip relative to the pointee: Gravity example: As of version 0.1.3, it's possible to use a callback function to set the gravity dynamically at hover-time. Here's an example (scroll the page to see the effect): Dynamic Gravity Dynamic gravity example: Fading For full Wob2.0 compliance, you must fade these badboys in: Fade example: Bonus Feature You can EVEN COMBINE FADE AND GRAVITY! Slightly Advanced Usage Tooltip text can be set based on any attribute, not just title: Custom attribute example: If any attribute isn't good enough, you may pass a callback function instead. Callback example: Fallback example: HTML example: Show/Hide Delay Delay example: Hover and wait Support for Live Events

Formalize CSS - Teach your forms some manners! Redrawing Elycharts in a one document jQuery Mobile environment Signature Pad · Thomas J Bradley Download ZIP—GitHub Introduction The Signature Pad jQuery plugin will transform an HTML form into a signature pad. The Signature Pad has two modes: TypeIt and DrawIt. In TypeIt mode the user’s signature is automatically generated as HTML text, styled with @font-face, from the input field where they type their name. The drawn signature is written out to a hidden input field as a JSON array using JSON.stringify(). Obviously, Signature Pad has a couple extra dependencies: Douglas Crockford’s json2.js and FlashCanvas 1.5. Signature Pad tries to maintain a certain level of progressive enhancement, while still giving developers enough control. Signature Pad works with both mouse and touch devices. Get the source code on GitHub: Demos Demo of accepting a signature—this demo showcases an HTML form and the Signature Pad ready to accept a new signature. How to Use the Plugin Don’t forget to include the flashcanvas.swf file. Accepting Signatures Javascript

Online JavaScript beautifier

Related: