Questions tagged [famo.us]

Famo.us is a JavaScript rendering and physics engine for creating web applications with high-performance 3D user interfaces.

Famo.us features a rendering engine that avoids slow DOM-layout and repaint calculations. Instead, it leverages the GPU using CSS3 transform.

Famo.us provides a JavaScript framework designed to build rich, interactive web applications. Famo.us takes an opinionated approach to web development, maintaining a tight control of rendering to achieve performance. The framework also maintains strict modularity for flexibility. Paired with server-side technology designed to match Famo.us on the front end, you can finally create high quality applications that were once reserved only for native development.

For more information see project website Famous.org

The prior version (v.0.3.5) site can be found at deprecated.famous.org

478 questions
0
votes
1 answer

How to add click event to each surface with specific effects, unable to add modifier

How to add click event to each surface with specific effects, I am not able to add modifier. I tried below code but its not working. I am unable to add StateModifier to each surface. Please help me to solve this problem as soon as possible. var…
Amit
  • 827
  • 10
  • 17
0
votes
1 answer

famo.us bug on require LightBox

I have a problem with famo.us when i make a simple require for LightBox. var StateModifier = require('famous/modifiers/StateModifier'); var Lightbox = require('famous/views/LightBox'); var SlideView = require('views/SlideView'); I don't know why…
MonkTools
  • 45
  • 1
  • 4
0
votes
1 answer

Backbone.babysitter error running Famo.us Asteroids game example

Anyone know why I'm getting these errors in Chrome console, when running this sample Astroids game (written with www.Famo.us): https://github.com/zgardner/famoids I did the usual npm install && bower install and grunt serve. I have npm and bower…
Giant Elk
  • 5,375
  • 9
  • 43
  • 56
0
votes
2 answers

Clearing a context when drawing on Famo.us CanvasSurface

I want to implement a custom render() method on a Famo.us CanvasSurface instance (or subclass thereof). I succeeded in drawing in the surface's context, but could not get the context to be cleared between animation frames. This is my code…
mbrgm
  • 73
  • 4
0
votes
1 answer

how to close a view and display another one in famo.us

I have a view consisting differebt surfaces and I want my app to close this view and display another view by clicking a button on the first view,l but I dont know how to close thi first view this is my code: var Engine =…
0
votes
1 answer

Why does my Famo.us animations move forward and backward unexpectedly?

I have some basic Famo.us code using a Scene to define my scene graph. I'm simply trying to rotate the famous logo, but it doesn't just rotate, it also seems to move forward and backward (or shrink and grow) repeatedly. My code is below, but before…
trusktr
  • 44,284
  • 53
  • 191
  • 263
0
votes
1 answer

Questions about views in famo.us

Im just starting with famo.us and javascript. And i really need some help with the views in famo.us. Could you please tell me how you close a View ? How does your code look like ? Is it true that if I have a view in a view in a view, I have to pass…
Ced
  • 1
0
votes
0 answers

Easiest way to broadcast events to siblings in the render tree?

The basic structure of views AppView > PageView > XView, YView, ZView. Where ">" is a "has a" association. How can one easily broadcast event from ZView to its other siblings XView and YView Thanks
visheshd
  • 341
  • 2
  • 7
0
votes
1 answer

Getting a background surface into the background only partially works

I'm trying to make a Famo.us game where I have a background Image ( an ImageSurface ) and then I put a bunch of other ImageSurfaces over the top and animate them. However the background surface doesn't stay in the background, for starters new…
Keith Nicholas
  • 43,549
  • 15
  • 93
  • 156
0
votes
1 answer

Famo.us: different ways of creating and calling functions

Hoping someone can provide an explain-like-I’m-five elucidation of the difference between the following types of functions within Famo.us, and when it’s appropriate to use them: sampleFunction() {} _sampleFunction()…
Sam Seidenberg
  • 153
  • 1
  • 7
0
votes
1 answer

Built-in Popup Modal

Is there any built-in support for modals in Famous? I completed the Famous University and looked through the documentation but didn't see anything. I am about to roll my own, but I figured I should ask first.
Tyler
  • 17,669
  • 10
  • 51
  • 89
0
votes
2 answers

Click Event on GridLayout ImageSurfaces

Im really new in Famo.us and JavaScript. Based on the Timbre Example im trying to implement a GridLayout on the PageView. That works fine. Now i planed to do a click event on every ImageSurface. But that doesnt work like that. Here's my…
Ced
  • 1
0
votes
1 answer

Animations not working when Famous (Famo.us) app wrapped in Phonegap

I tried wrapping a sample famo.us app using Phonegap and created an apk using build.phonegap.com. For some reason, the animations/transitions are not showing up. The app loads correctly with all resources properly showing up (images, famous…
insaneinc
  • 260
  • 1
  • 12
0
votes
1 answer

Removing body (balls) from physics engine

I've been trying to remove elements (balls) that have been added to the Physics engine, but I can't find a way to do it. This is the code I'm using to add the molecules to the Physics Engine: var numBodies = 15; function _addMolecules() { …
0
votes
1 answer

Scrollview that 'snaps' from view to view

The default behavior for a scroll seems to be to scroll with no resistance, i.e. if you swipe really hard then you can zoom through a lot of views. Is there a mechanism I can use so that when you swipe (no matter how hard), you will just snap to…
BloonsTowerDefence
  • 1,184
  • 2
  • 18
  • 43