famous-angular

surface selection in famo.us + angular

蓝咒 提交于 2019-12-25 01:23:38
问题 I'm wondering how I can select specific fa-surface elements so that I can deal with them in a controller as surface objects. I have this markup <fa-modifier ng-repeat="item in list"> <fa-image-surface fa-click="itemClick($index)"> {{item.name}} </fa-image-surface> </fa-modifier> On itemClick(), I want to be able to apply modifiers in my controller to operate on a particular surface as an object (as seems typical in famo.us without the angular). Right now, if I try something like this <fa

How to create a hexagonal custom surface in famo.us

爷,独闯天下 提交于 2019-12-23 04:37:28
问题 I'm testing "famo.us" Javascript Framework, and don't know how to do "custom surfaces". My goal is to create hexagonal surfaces (if possible with rounded corners) and put those surfaces next to each other as this example : But, i also need to click on each surface and activate different actions depending on the surface. AND also to put images on each surface ! Right now, i know how to use rectangular famo.us surfaces, i know how to modify it, turn it, translate it, etc... But is it possible

Listen to famous-angular scroll view

送分小仙女□ 提交于 2019-12-11 06:54:41
问题 Is there a way to listen to a famous-angular's fa-scroll-view for scroll events on touch devices? For example, right out of the famous-angular docs: <fa-app ng-controller="ScrollCtrl"> <!-- fa-scroll-view receives all events from $scope.myEventHandler, and decides how to handle them --> <fa-scroll-view fa-pipe-from="myEventHandler"> <fa-view ng-repeat="view in views"> <fa-modifier fa-size="[undefined, 160]"> <!-- All events on fa-surfaces (click, mousewheel) are piped to $scope.myEventHandler

Animate Opacity async with other Transform functions

时间秒杀一切 提交于 2019-12-10 11:58:53
问题 I need to make opacity of a surface to transform from 0 to 1 like this: stateModifier.setTransform( Transform.multiply(Transform.opacity(1), Transform.rotateX(0)), { duration : 500, curve: Easing.inOutSine } ); But Transform.opacity doesn't exist. I know this is basic but how to transform opacity with other properties like translate or rotate . I know modifier has setOpacity according to http://famo.us/guides/animations UPDATE I thought stateModifier.setOpacity is async that can be animated