Skip to content

Instantly share code, notes, and snippets.

View abusedmedia's full-sized avatar
🎯
Focusing

Fabio Franchino abusedmedia

🎯
Focusing
View GitHub Profile
@abusedmedia
abusedmedia / metatag.html
Created February 11, 2016 06:57
Mobile metatag
<meta name="viewport" content='width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0' />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="myapp">
<meta name="application-name" content="myapp">
@abusedmedia
abusedmedia / README.md
Last active February 11, 2016 09:07
Horizontal slider with Impetus

Horizontal slider with Impetus

This shows the technique to incorporate a common slider within a svg component using the wonderful library Impetus to handle momentum and rubber-band.

This example use a piece of code to create runtime the neccessary element to clip a content properly. The same thing can be set (avoiding the code) within Illustrator but at the cost of some issues and manual edits and other quirks outlined below.

Tweaks in Illustrator

To animate the masked content properly we need to tweak a little bit the svg since Illustrator export the svg without a proper structure.

@abusedmedia
abusedmedia / README.md
Last active February 10, 2016 11:16
Header menu selector

Header menu selector

Behaviors with d3.js, assets and document structure with svg generated from Illustrator/Sketch.

Test with your mobile device by clicking here

@abusedmedia
abusedmedia / README.md
Last active March 10, 2016 10:37
Smooth state transition

Smooth state transition

State transition animation with d3.js, heavily inspired by this prototype from Framer.js

Test with your mobile device by clicking here

More info about the bundle here

@abusedmedia
abusedmedia / README.md
Last active February 8, 2016 15:22
Guillotine menu transition

Guillotine menu transition

A quick prototype of the open/close menu transition with guillotine effect, seen first on this article.

Test with your mobile device by clicking here

@abusedmedia
abusedmedia / README.md
Last active February 11, 2016 21:50
Simple mask technique

Simple mask technique to make a state transition

@abusedmedia
abusedmedia / bulk-image-download.js
Created February 4, 2016 18:34
Node script for bulk image download, image scraping for the masses
var fs = require('fs'),
request = require('request');
src = require('./dataset.js'); //external array with url of images that need to be downloaded
var download = function(uri, filename, callback){
request.head({url:uri, followAllRedirects: true}, function(err, res, body){
console.log('content-type:', res.headers['content-type']);
console.log('content-length:', res.headers['content-length']);
@abusedmedia
abusedmedia / README.md
Created January 25, 2016 09:47
Google Font in SVG from AI

Use Google Font in svg generated from Adobe Illustrator

@abusedmedia
abusedmedia / README.md
Last active March 10, 2016 10:49
Simple push and release on element

Simple push and release on element with d3.js, mobile ready.

More info about the bundle here

@abusedmedia
abusedmedia / README.md
Last active January 10, 2016 10:37
HAR Abstractor

HAR Abstractor