Skip to content

Instantly share code, notes, and snippets.

@hemanth
Created March 6, 2015 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hemanth/c3c0d6d4b4892f2da149 to your computer and use it in GitHub Desktop.
Save hemanth/c3c0d6d4b4892f2da149 to your computer and use it in GitHub Desktop.
requirebin sketch
"use strict";
var animate = require('fd-animate');
var logo = document.createElement('img')
logo.src = 'https://raw.githubusercontent.com/fp-dom/logo/master/fp-dom.png';
document.body.appendChild(logo)
animate(function(){return [
{opacity: "0.5", transform: "scale(0.5)"},
{opacity: "1.0", transform: "scale(1)"}
]}, function(){return {direction: "alternate", duration: 500, iterations: Infinity}}, logo);
require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";exports.curry=curry;exports.curryN=curryN;var slice=Array.prototype.slice;function _curry(n,fn,curryArgs){return function(){var args=slice.call(arguments),concatArgs=curryArgs.concat(args);if(n>concatArgs.length){return _curry(n,fn,concatArgs)}else{return fn.apply(this,slice.call(concatArgs,0,n))}}}function curry(fn){return _curry(fn.length,fn,[])}function curryN(n,fn){return _curry(n,fn,[])}var curry1=exports.curry1=curryN(2,curryN)(1);var curry2=exports.curry2=curryN(2,curryN)(2);var curry3=exports.curry3=curryN(2,curryN)(3);var curry4=exports.curry4=curryN(2,curryN)(4);exports.__esModule=true},{}],"fd-animate":[function(require,module,exports){"use strict";var curry3=require("fj-curry").curry3;var _animate=function(animFunc,confFunc,elem){return elem.animate(animFunc(),confFunc())};module.exports=curry3(_animate)},{"fj-curry":1}]},{},[]);"use strict";var animate=require("fd-animate");var logo=document.createElement("img");logo.src="https://raw.githubusercontent.com/fp-dom/logo/master/fp-dom.png";document.body.appendChild(logo);animate(function(){return[{opacity:"0.5",transform:"scale(0.5)"},{opacity:"1.0",transform:"scale(1)"}]},function(){return{direction:"alternate",duration:500,iterations:Infinity}},logo);
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"fd-animate": "0.1.0"
}
}
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment