animation - AngularJS animating element -
i add animations angularjs applications, , surfing on dribble found example:
can point me right direction achieving effect ? there libs doing work or entirely artisanal ?
notice 2 animations, 1 front yellow button expanding full area, , area sliding/fading away
i giving example, can change effects meet needs!
var app = angular.module('myapp', ['nganimate', 'fmp-card']); app.controller('mainctrl', function($scope) { $scope.leftbacktext = 'here can insert want, may page!'; $scope.rightbacktext = "http://sstatic.net/stackexchange/img/logos/so/so-icon.png?v=41f6e13ade69"; });
.my-card{ display: inline-block; } .back-text{ padding-top: 60px; padding-left: 10px; padding-right: 10px; } #container{ width: 100%; } #card-1{ float: left; } #card-2{ float: left; }
<!doctype html> <html ng-app="myapp"> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>angularjs flip card</title> <link href="style.css" rel="stylesheet" /> <link href="https://rawgit.com/souly1/angular-flip-card/master/css/fmpcarddirective.css" rel="stylesheet" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script data-require="angular.js@1.3.x" src="https://code.angularjs.org/1.3.6/angular.min.js" data-semver="1.3.6"></script> <script data-require="angular-animate@*" data-semver="1.3.6" src="https://code.angularjs.org/1.3.6/angular-animate.min.js"></script> <script src="https://rawgit.com/souly1/angular-flip-card/master/fmpcarddirective.js"></script> <script src="app.js"></script> </head> <body ng-controller="mainctrl"> <div id="container"> <fmp-card class="my-card" id="card-1" suffix="left" image="http://sstatic.net/stackexchange/img/logos/so/so-icon.png?v=41f6e13ade69" front-caption="left card" small-card-width="200px" small-card-height="200px"> <div class="back-text"><img src={{rightbacktext}} /></div> </fmp-card> <fmp-card class="my-card" id="card-2" suffix="right" image="http://sstatic.net/stackexchange/img/logos/so/so-icon.png?v=41f6e13ade69" front-caption="right card" small-card-width="200px" small-card-height="200px"> <div class="back-text">{{leftbacktext}}</div> </fmp-card> </div> </body> </html>
Comments
Post a Comment