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

Build Internet 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.

How to Create a Contact Form using HTML5, CSS3 and PHP | Tangled in Design Personally, I feel it is important to be aware of the [positive] impact HTML5 will have on forms and the way they will function in years to come. Realistically, we can’t implement all of the new features today, but you don’t want to be lagging behind the rest of the industry when these features finally become widely supported. Having said that, this tutorial will be focusing on the new HTML5 features that are already supported by all the major browsers, or that at least employ graceful degradation for the browsers that are still trying to play catch up. 1. The Design First of all, this is not a Photoshop tutorial. 2. Now we have a design to work towards, we’re going to form the structure of the contact form using HTML5. Doctype Okay, now we’ve got our blank PHP document, let’s start with the appropriate doctype, which is a lot simpler in HTML5 than previous versions to say the least! <! Yep, that’s right. Just to compare, here’s the doctype for XHTML; <! Structure <! That’s right. The Form 3. <?

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

Don’t use ID selectors in CSS | screwlewse.com Posted on: July 28, 2010 / Lately I have been testing out performance among css styles and I found that some of my very smart friends, started asking,”why aren’t you testing using IDs for the unique sections of the page?”. This wasn’t a hard answer: The element is not re-usable on that page.This is the begining of a downward sprial into specificityUsually, IDs refer to something very specific, and abstracting would be toughAny performance gains picked up by using id, is negated by adding any other selector to the left fo that id Lets delve into each of these issues at more length The element is not re-usable on that page: IDs are programmer’s equivalent to singletons. This is the beginning of a downward spiral into specificty: There are two main ways of overriding in css. The cascade: (anything further down the css, can overwrite the previous css rules)Specificity: the idea of creating weight by using weighted selectors. Above is real code from one of my own work from 2005. On the other hand:

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

Taming Advanced CSS Selectors 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,

font-style - CSS Summary The font-style CSS property allows italic or oblique faces to be selected within a font-family. Initial value normal Applies to all elements Inherited yes Media visual Computed value as specified Animatable no Canonical order the unique non-ambiguous order defined by the formal grammar Syntax Formal syntax: normal | italic | oblique font-style: normal font-style: italic font-style: oblique font-style: inherit Values Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face. normal Selects a font that is classified as normal within a font-family italic Selects a font that is labeled italic, if that is not available, one labeled oblique oblique Selects a font that is labeled oblique Example This paragraph is normal. This paragraph is italic. This paragraph is oblique. The above example shows the two font-style values. And the HTML looks like this: <p class="normal">This paragraph is normal. Specific​ations Browser compatibility See also

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");});

Related: