I am trying to show a <div> called settings when I click a button. It should fade in and then slide to the right. It fades in on the left side of the screen.
I have so far:
The HTML
<div id="settings" ng-show="settings"> </div> and the link to call the showSettings() function:
<a href="#" ng-click="showSettings()"><i class="icon setting"></i></a> The CSS
#settings { background:red; position:fixed; top:0; left:0; bottom:0; width:400px; } The Controller
$scope.showSettings = function(){ $timeout(function() { $scope.settings = true; }, 250); } So I have it fading in but how do I now make it slide to the right by say 200px?
Also, I would like to be able to click anywhere other than the <div> itself to reverse the process.