CSS3 Animation that rotates any element naturally.
Demo here http://bl.ocks.org/4402407/
Full credit to Pedro Ivo Hudson for the The Goodman
| # Convert a live action video to gif | |
| # Works best for videos with high color palettes like videos from your phone | |
| # | |
| # @param $1 - video file name like `video.mp4` | |
| # @param @optional $2 - width size like `720` | |
| # | |
| # Example: ffmpegtogif video.mp4 720 | |
| # Requirements: ffmpeg. Can be downloaded via homebrew | |
| # | |
| # http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html |
| # Convert an animated video to gif | |
| # Works best for videos with low color palettes like Dribbble shots | |
| # | |
| # @param $1 - video file name like `animation.mov` | |
| # @param @optional $2 - resize parameter as widthxheight like `400x300` | |
| # | |
| # Example: vidtogif animation.mov 400x300 | |
| # Requirements: ffmpeg and gifsicle. Can be downloaded via homebrew | |
| # | |
| # http://chrismessina.me/b/13913393/mov-to-gif |
| if [ -z "${PROJECT_DIR}" ]; then | |
| PROJECT_DIR=`pwd` | |
| fi | |
| if [ -z "${PREFIX}" ]; then | |
| PREFIX="" | |
| fi | |
| SVN_DIR="${PROJECT_DIR}/.svn" | |
| GIT_DIR="${PROJECT_DIR}/.git" |
| // | |
| // Device.swift | |
| // imHome | |
| // | |
| // Created by Kevin Xu on 2/9/15. Updated on 6/20/15. | |
| // Copyright (c) 2015 Alpha Labs, Inc. All rights reserved. | |
| // | |
| import Foundation |
| import Foundation | |
| extension UIFont { | |
| class func systemFontOfSize(size: CGFloat) -> UIFont { | |
| return UIFont(name: "HelveticaNeue", size: size)! | |
| } | |
| class func italicSystemFontOfSize(size: CGFloat) -> UIFont { | |
| return UIFont(name: "HelveticaNeue-Italic", size: size)! | |
| } |
CSS3 Animation that rotates any element naturally.
Demo here http://bl.ocks.org/4402407/
Full credit to Pedro Ivo Hudson for the The Goodman
CSS3 Animation that bounces into the air any element naturally.
Demo here http://bl.ocks.org/4402301/
Full credit to Pedro Ivo Hudson for the The Goodman
CSS3 Animation that fades out the content going up.
Demo here http://bl.ocks.org/4402060/
Full credit to Pedro Ivo Hudson for the The Goodman
CSS3 Animation that fades in the content from the bottom up.
Demo here http://bl.ocks.org/4401674/
Full credit to Pedro Ivo Hudson for the The Goodman
Javascript code that calculates how much active time is spent on a tab and takes into account changing tabs, switching windows, or leaving the page.
Demo here http://bl.ocks.org/d/4393523/