Skip to content

Instantly share code, notes, and snippets.

View rodcul's full-sized avatar

Rodney Cullen rodcul

View GitHub Profile
@rodcul
rodcul / fullpage.js
Last active September 7, 2016 10:53 — forked from nhoizey/screenshots.js
Take screenshots at different viewport sizes using CasperJS
/*
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes.
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed
*
* Usage:
* $ casperjs screenshots.js http://example.com
*/
var casper = require("casper").create();