1
I ask for a transition effect in the menu when giving an ng show or ng Hide (click on the open button).
<a class="sandwich panel" ng-class="{'open' : isOpen}" ng-click="isOpen=!isOpen; toggleCustom()">
<div>
</div>
</a>
</nav>
<div ng-hide="custom">
<ul class="menu-mob">
<li class="menu-option color-menu-selected" ng-click="isOpen=!isOpen; toggleCustom()"><a ui-sref="home">Home</a></li>
<li class="menu-option color-menu" ng-click="isOpen=!isOpen; toggleCustom()"><a ui-sref="vandergama">Client</a></li>
<li class="menu-option color-menu" ng-click="isOpen=!isOpen; toggleCustom()"><a ui-sref="portifolio">Portifólio</a></li>
<li class="menu-option color-menu" ng-click="isOpen=!isOpen; toggleCustom()"><a ui-sref="contato">Contato</a></li>
</ul>
</div>
Angular:
app.controller("app", function($scope){
$scope.custom = true;
$scope.toggleCustom = function() {
$scope.custom = $scope.custom === false ? true: false;
};
});
My Css wouldn’t help much, but the idea is that when opening the menu, it has an effect like this -> HERE <-
your plunker linked this empty and think your css helps yes ein.. rs
– andrepaulo
Just like @andrepaulo said, your CSS will help yes and it’s even better to create in CSS.
– Douglas Garrido
Vixe, sorry. Follow this link so https://docs.angularjs.org/aping/directive/ngShow, this is the first example. Dude, I told you about css because I’m only using it for a little effect on the button and to fill the menu tab. Ms n to use it for effect.
– hisoka