Based on previous work by Geoff Yuen, improved with JavaScript and semantic markup. More information on my blog
A Pen by Dudley Storey on CodePen.
Based on previous work by Geoff Yuen, improved with JavaScript and semantic markup. More information on my blog
A Pen by Dudley Storey on CodePen.
Technique explained in the related blog post
A Pen by Dudley Storey on CodePen.
| <div class="my-container"> | |
| <div class="my-element"></div> | |
| <div class="my-element"></div> | |
| <div class="my-element"></div> | |
| </div> | 
| <div class="container"> | |
| <h1>Parallax</h1> | |
| <h2>faster</h2> | |
| <h2>easier</h2> | |
| <h2>sassier</h2> | |
| <img src="http://placekitten.com/200/200" alt=" " /> | |
| <img src="http://placekitten.com/150/200" alt=" " /> | |
| <img src="http://placekitten.com/200/150" alt=" " /> | |
| <img src="http://placekitten.com/150/250" alt=" " /> | |
| <img src="http://placekitten.com/300/400" alt=" " /> | 
| $(document).ready(function(){ | |
| //setup info | |
| var id = "";//<- You user id | |
| var num = 1;//<- How many images to pull in | |
| // Grab JSON from Flickr | |
| $.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne?id="+id+"&lang=en-us&format=json&jsoncallback=?", displayImages); | |
| // | |
| function displayImages(data) | 
| const webpackConfig = { | |
| entry: './app/index.js', | |
| output: { | |
| filename: 'bundle.js', | |
| path: path.resolve(__dirname, 'dist') | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.css$/, | 
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Loading public Flickr images onto your website. | Sandbox by Lovell D'souza.</title> | 
| <div id="phone"> | |
| <div id="screen"> | |
| <div id="header"> | |
| <ul id="menu"> | |
| <li>Latest Movies</uli> | |
| <li>Best Movies</uli> | |
| <li>Archive</uli> | |
| <li>About</li> | |
| <li class="reload"><i class="loader-icon"></i></li> | |
| </ul> | 
| { | |
| "presets": [ | |
| ["es2015", { | |
| "es2015": { | |
| "loose": true, | |
| "modules": false | |
| } | |
| }], "react" | |
| ] | |
| } | 
| div.container ng-app="codepen" | |
| div.row | |
| div.col-md-12 | |
| h1.page-header Unofficial JS-YAML demo. YAML JavaScript parser. | |
| div.row ng-controller="MainCtrl" | |
| div.col-md-6 | |
| div.panel.panel-default | |
| div.panel-heading Source | |
| div.panel-body | |
| form role="form" |