Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Definetely this is your page:</p> <pre><code>http://stephband.info/jparallax/ </code></pre> <p>Example:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;meta name="author" content="" /&gt; &lt;meta name="description" content="" /&gt; &lt;title&gt;jQuery.parallax&lt;/title&gt; &lt;script&gt;document.documentElement.className = 'js';&lt;/script&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" /&gt; &lt;!-- Force latest IE rendering engine &amp; Chrome Frame --&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /&gt; &lt;!-- Make IE recognise HTML5 elements for styling --&gt; &lt;!--[if lte IE 8]&gt; &lt;script src="//html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt; &lt;noscript&gt; &lt;strong&gt;Warning!&lt;/strong&gt; Your browser does not support HTML5 so some elements on this page are simulated using JScript. Unfortunately your browser has JScript disabled. Please enable it in order to display this page. &lt;/noscript&gt; &lt;![endif]--&gt; &lt;!-- Disable image toolbar in IE6 --&gt; &lt;!--[if lte IE 6]&gt;&lt;meta http-equiv="imagetoolbar" content="no" /&gt;&lt;![endif]--&gt; &lt;link rel="icon" type="image/png" href="images/favicon.png" /&gt; &lt;link rel="apple-touch-icon" href="/apple-touch-icon.png" /&gt; &lt;link rel="stylesheet" type="text/css" href="http://stephband.info/css/template.min.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="http://stephband.info/css/template.theme.min.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="http://stephband.info/css/site.layout.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="http://stephband.info/css/docs.classes.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="http://stephband.info/css/demos.theme.css" /&gt; &lt;!--[if (lt IE 9)&amp;(!IEMobile)]&gt; &lt;link rel="stylesheet" href="http://stephband.info/css/template.layout.32em.css" media="all" /&gt; &lt;link rel="stylesheet" href="http://stephband.info/css/template.layout.48em.css" media="all" /&gt; &lt;![endif]--&gt; &lt;!--[if lte IE 8]&gt;&lt;link rel="stylesheet" href="http://stephband.infocss/template.ie.css" /&gt;&lt;![endif]--&gt; &lt;!--[if IE 8]&gt;&lt;link rel="stylesheet" href="http://stephband.infocss/template.ie8.css" /&gt;&lt;![endif]--&gt; &lt;!--[if IE 7]&gt;&lt;link rel="stylesheet" href="http://stephband.infocss/template.ie7.css" /&gt;&lt;![endif]--&gt; &lt;!--[if IE 6]&gt;&lt;link rel="stylesheet" href="http://stephband.infocss/template.ie6.css" /&gt;&lt;![endif]--&gt; &lt;link rel="stylesheet" href="../css/jquery.parallax.css" /&gt; &lt;style type="text/css" media="screen, projection"&gt; #wrapper { width: 60em; } .button { background: #2f3134; float: left; position: relative; width: 60px; height: 60px; margin: 3.2em 3.2em 0 0; } #viewport { float: left; position: relative; background: #2f3134; width: 60px; height: 60px; margin: 6.4em 3.2em 0 2.4em; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; } #mouseport { float: left; position: relative; background: #2f3134; width: 60px; height: 60px; margin: 6.4em 3.2em 0 0; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; } .layer_1 { position: absolute; width: 45px; height: 45px; z-index: 101; } .layer_2 { position: absolute; width: 48px; height: 48px; z-index: 102; } .layer_3 { position: absolute; width: 52px; height: 52px; z-index: 103; } .layer_4 { position: absolute; width: 58px; height: 58px; z-index: 104; } .layer_5 { position: absolute; width: 67px; height: 67px; z-index: 105; } .layer_6 { position: absolute; width: 80px; height: 80px; z-index: 106; } .tl, .tr, .bl, .br { width: 11px; height: 11px; } .tl { background: url('http://stephband.info/images/corner_dark_tl.png'); } .tr { background: url('http://stephband.info/images/corner_dark_tr.png'); } .bl { background: url('http://stephband.info/images/corner_dark_bl.png'); } .br { background: url('http://stephband.info/images/corner_dark_br.png'); } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;header class="site_header" id="page_header"&gt; &lt;div class="site_wrap wrap"&gt; &lt;a class="logo_thumb thumb" href="http://stephband.info" title="stephband" rel="index"&gt; &lt;h1&gt;stephband.info&lt;/h1&gt; &lt;/a&gt; &lt;/div&gt; &lt;/header&gt; &lt;div class="site_wrap wrap"&gt; &lt;h2&gt;jParallax Demos &lt;a href="thumbnails.html"&gt;next&lt;/a&gt;&lt;/h2&gt; &lt;div id="wrapper" class="clear"&gt; &lt;div id="viewport"&gt; &lt;!-- Parallax layers --&gt; &lt;img src="http://webdev.stephband.info/jparallax/images/parallax_button/1.png" alt="" class="layer_1"/&gt; &lt;img src="http://webdev.stephband.info/jparallax/images/parallax_button/2.png" alt="" class="layer_2"/&gt; &lt;img src="http://webdev.stephband.info/jparallax/images/parallax_button/3.png" alt="" class="layer_3"/&gt; &lt;img src="http://webdev.stephband.info/jparallax/images/parallax_button/4.png" alt="" class="layer_4"/&gt; &lt;img src="http://webdev.stephband.info/jparallax/images/parallax_button/5.png" alt="" class="layer_5"/&gt; &lt;img src="http://webdev.stephband.info/jparallax/images/parallax_button/6.png" alt="" class="layer_6"/&gt; &lt;/div&gt; &lt;div id="mouseport"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"&gt;&lt;/script&gt; &lt;script src="../js/jquery.parallax.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; jQuery(document).ready(function(){ // Set up parallax layers jQuery("#viewport&gt;img").parallax( { mouseport: jQuery("#mouseport") }, // Options { xparallax: '6px', yparallax: '6px' }, // Layer 1 { xparallax: '12px', yparallax: '12px' }, // Layer 2 { xparallax: '30px', yparallax: '30px' }, // Layer 3 { xparallax: '54px', yparallax: '54px' }, // Layer 4 { xparallax: '84px', yparallax: '84px' }, // Layer 5 { xparallax: '120px', yparallax: '120px' } // Layer 6 ); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Hope this encourages your creativity!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload