This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*globals define*/ | |
define(function(require, exports, module) { | |
'use strict'; | |
// import dependencies | |
var Engine = require('famous/core/Engine'); | |
var Surface = require('famous/core/Surface'); | |
var ImageSurface = require('famous/surfaces/ImageSurface'); | |
var StateModifier = require('famous/modifiers/StateModifier'); | |
var RenderController = require('famous/views/RenderController'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['app', 'famous/core/Engine', 'famous/core/Surface', 'famous/core/Modifier', 'famous/core/Transform', 'famous/views/HeaderFooterLayout', 'famous/views/RenderController', 'famous/views/Lightbox', 'famous/transitions/Transitionable', 'directivesFamous'], function (app, Engine, Surface, Modifier, Transform, HeaderFooterLayout, RenderController, Lightbox, Transitionable) { | |
var layout = new HeaderFooterLayout({ | |
headerSize: 50 | |
}); | |
layout.header.set(new Modifier({transform: Transform.translate(0, 0, 1)})); | |
layout.header.add(new Surface({ | |
size: [undefined, 50], | |
content: "Header", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Famo.us pysics library classes, no examples were provided yet for the Body, Circle, Particle, Rectangle, Collision, Constraint, Curve, Distance, Snap, Surface, Wall, Walls, Drag, Force, Repulsion, RotationalDrag, RotationalSpring, Spring, VectorField, SymplecticEuler or PhysicsEngine classes. | |
// | |
// A placehold gist appears for these classes: | |
// | |
// For the Body class at gist.codefamo.us/body | |
// | |
// For the Circle class at gist.codefamo.us/circle | |
// | |
// For the Particle class at gist.codefamo.us/particle | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Famo.us views library classes, examples are provided: | |
// | |
// For the Deck class at gist.codefamo.us/deck | |
// | |
// For the EdgeSwapper class at gist.codefamo.us/edgeswapper | |
// | |
// For the FlexibleLayout class at gist.codefamo.us/flexiblelayout | |
// | |
// For the Flipper class at gist.codefamo.us/flipper | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Famo.us transitions library classes, examples are provided: | |
// | |
// For the Easing class at gist.codefamo.us/easing | |
// | |
// For the SpringTransition class at gist.codefamo.us/springtransition | |
// | |
// For the Transitionable class at gist.codefamo.us/transitionable | |
// | |
// For the TransitionableTransform class at gist.codefamo.us/transitionabletransform | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Famo.us utilities library classes, examples are provided: | |
// | |
// For the Timer class at gist.codefamo.us/timer-every, gist.codefamo.us/timer-after, gist.codefamo.us/timer-clear, gist.codefamo.us/timer-setTimeout and gist.codefamo.us/timer-setInterval | |
// | |
// For the Utility class at gist.codefamo.us/utility-after |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// No examples were provided yet for the NavigationBar, Slider, TabBar or ToggleButton classes. | |
// | |
// A placehold gist appears for these classes: | |
// | |
// For the NavigationBar class at gist.codefamo.us/navigationbar | |
// | |
// For the Slider class at gist.codefamo.us/slider | |
// | |
// For the TabBar class at gist.codefamo.us/tabbar | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Famo.us surfaces library classes, examples are provided: | |
// | |
// For the ContainerSurface class at gist.codefamo.us/containersurface | |
// | |
// For the ImageSurface class at gist.codefamo.us/imagesurface | |
// | |
// For the InputSurface class at gist.codefamo.us/inputsurface | |
// | |
// No examples were provided yet for the CanvasSurface, TextareaSurface or VideoSurface classes. | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Famo.us modifiers library classes, examples are provided: | |
// | |
// For the Draggable class at gist.codefamo.us/draggable | |
// | |
// For the ModifierChain class at gist.codefamo.us/modifierchain | |
// | |
// No examples were provided yet for the Fader or StateModifier classes. | |
// | |
// A placehold gist appears for these classes: | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Famo.us math library classes, examples are provided: | |
// | |
// For the Matrix class at gist.codefamo.us/matrix | |
// | |
// For the Quaternion class at gist.codefamo.us/quaternion | |
// | |
// For the Random class at gist.codefamo.us/random | |
// | |
// For the Vector class at gist.codefamo.us/vector | |
// |
NewerOlder