Closed trusktr closed 10 years ago
Thanks for suggesting this! This was implemented a couple of weeks ago in d99b39beb8b3 but it may not yet be in a tagged release (latest is 0.1.0.) We're due for another release soon, but if you'd like it sooner you can pull it directly from master in the meantime.
Sweet. I was going to suggest simply adding
isolate.context.setPerspective(scope.$eval(attrs.faPerspective));
right after createContext() for starters, but that won't update dynamically.
This doesn't seem to work anymore
Can you please provide more details as how this is not working...
@zackbrown This should be moved to parseInt(scope.$eval(attrs.faPerspective))
or something similar.
<fa-app ng-controller="famousCtrl" style="width: auto; height: 800px" fa-perspective="1000">
@zackbrown setting a rotation
$scope.box.rotate.set(-45 * Math.PI/180, {duration: 1200, curve: Easing.inOutExpo});
and an fa-modifier
fa-rotate-y="box.rotate.get()"
the box will rotate with no perspective applied until chrome (Version 41.0.2272.118 (64-bit)) is resized, resizing chrome before the animation is called makes no difference.
Bug is not reproduced in Safari.
In vanilla famo.us, perspective is something you apply to you famous context.
It would seem appropriate to make an
faPerspective
attribute directive for use on the 'faApp' directive like so: