Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .move-start {
- margin-left: 0;
- transition: 2s;
- }
- .move-end {
- margin-left: 200px;
- }
- <div class="move-start" ng-class="{ 'move-end': beginMovement }" />
- app.controller('SomeController', ['$scope', '$timeout',
- function SomeController($scope, $timeout) {
- $timeout(function () {
- $scope.beginMovement = true;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement