jeudi 26 février 2015

can I work with angular js ng-repeat and turn.js?


I'm trying to make a magazine using turn.js and angular.js


I'm using angular to parse the json file and extract the image path for using it in a $scope variable in my view with ng-repeat and the turn.js to make the flipbook animation to make the div look like a magazine.


But it doesnt generate the flipbook and just draw the images one after other.


Please help! I put the code right here


HTML



<div id="flipbook" class="flipbook"ng-repeat="slide in slides">
<div><img src="{{slide.path_main}}"></div>
</div>


</div>


Flipbook init



$("#flipbook").turn({
width: 1724,
height: 772,
autoCenter: true
});




Aucun commentaire:

Enregistrer un commentaire