background preloader

Parallax Slider with jQuery

Parallax Slider with jQuery
(function($) { $.fn.parallaxSlider = function(options) { var opts = $.extend({}, $.fn.parallaxSlider.defaults, options); return this.each(function() { var $pxs_container = $(this), o = $.meta ? var $pxs_slider = $('.pxs_slider',$pxs_container), $elems = $pxs_slider.children(), total_elems = $elems.length, $pxs_next = $('.pxs_next',$pxs_container), $pxs_prev = $('.pxs_prev',$pxs_container), $pxs_bg1 = $('.pxs_bg1',$pxs_container), $pxs_bg2 = $('.pxs_bg2',$pxs_container), $pxs_bg3 = $('.pxs_bg3',$pxs_container), current = 0, $pxs_thumbnails = $('.pxs_thumbnails',$pxs_container), $thumbs = $pxs_thumbnails.children(), slideshow, $pxs_loading = $('.pxs_loading',$pxs_container), $pxs_slider_wrapper = $('.pxs_slider_wrapper',$pxs_container); var loaded = 0, $images = $pxs_slider_wrapper.find('img'); $images.each(function(){ var $img = $(this); $('<img/>').load(function(){ ++loaded; if(loaded == total_elems*2){ $pxs_loading.hide(); $pxs_slider_wrapper.show(); var one_image_w = $pxs_slider.find('img:first').width(); else{

http://tympanus.net/codrops/2011/01/03/parallax-slider/

Related:  html5 css3 JS

slick - the last carousel you'll ever need Set up your HTML markup. <div class="your-class"><div>your content</div><div>your content</div><div>your content</div></div> Move the /slick folder into your project Add slick.css in your <head> <link rel="stylesheet" type="text/css" href="slick/slick.css"/> // Add the new slick-theme.css if you want the default styling <link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/> Add slick.js before your closing <body> tag, after jQuery (requires jQuery 1.7 +) Generate Websites from JSON, Markdown, and Mustache Templates using Punch A few months ago, I switched this blog from Wordpress to Jekyll. I love how Jekyll allows me to prepare everything locally and simply publish when it's ready. There's no server-side logic involved, which means I can host the whole blog in a S3 bucket.

Better, Stronger, Safer jQuerify Bookmarklet A long time ago I built myself a little bookmarklet to load jQuery on pages that don't already have it. The idea was to allow me to play around with any page on the web, using jQuery in the Firebug (and now Safari or IE8) console. I blogged about it, got lots of great feedback, and then blogged about an improved version. De-Pagify De-pagify let's you easily enable endless scroll for paged sites such as fmylife , digg , failblog and other blog sites to enable functionality similar to Bing image search . The latest code & documentation is available at . View Demo Usage

Getting started Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable. Less runs inside Node, in the browser and inside Rhino. There are also many 3rd party tools that allow you to compile your files and watch for changes. For example: compiles to Howto Dynamically Insert Javascript And CSS Filed: Thu, Jan 25 2007 under Programming|| Tags: json dhtml javascript css1 css This is a short and sweet little tutorial to show you how to dynamically insert a new Javascript (or style sheet) into your web pages, and explores how you can exploit cross-domain includes in your applications. As JSON and DHTML start to get pushed more and more to the forefront of web-based applications, the web designer is faced with a new problem: how to dynamically insert a script element into an existing web page. It won't take long to figure out that ajax loads and innerHTML injections won't work.

Fokus - Emphasized text-highlighting using JavaScript It's that time of the year again! In late 2010, having spent five great years working at Fi, I was determined to change up my professional life. After interviewing with Qwiki and accepting the position of Lead Interactive Developer it was decided; I was moving to San Francisco! JavaScript · Bootstrap Copy $(document).off('.data-api') $(document).off('.alert.data-api') $('.btn.danger').button('toggle').addClass('fat')

Interface elements for jQuery - About Interface About Interface Interface is a collection of rich interface components which utilizes the lightweight JavaScript library jQuery. With this components you can build rich client web applications and interfaces with the same simplicity as writing JavaScript with jQuery. The collection is dual licensed with the MIT license and the GPL, which basically means you can use it for free for both non-commercial and commercial usage as long as you keep the copyright notice in each of Interface's JavaScript source file.

50 Free Bootstrap 3 Templates and UI Kits We have collected 50 Bootstrap 3 templates for you to freely use in your next project. We have purposefully omitted all of those starter, bare-bones and unstyled templates from this round-up, of which there are a multitude freely available on the web. We instead have focussed on highlighting 50 fully-featured, creatively designed, and of course, free Bootstrap 3 templates, that we are sure you will love and appreciate. We have categorized the themes and templates into the following sections: Landing Page Templates, Single-Page Templates, Multi-Purpose Templates, Creative Agency Templates, Portfolio Templates, Coming Soon Templates, Material Design Templates, Style Guide Templates, and finally a selection of fantastic Bootstrap built UI kits.

Example Strapdown creates Markdown documents using Bootstrap/Bootswatch themes. No server-side compilation is required. For an example see

Related: