How to make slide-in-up animation for $state.go functionality?

I want to make animation “slide-in-up” for one of my states. And as I see it’s imposible or I don’t know how to do that. Does anybody know how to do that?

I did smth. like this:

<html ng-app="ionicApp">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">    
    <title>Tabs Example</title>
    <link href="//" rel="stylesheet">
    <script src="//"></script>

    <ion-nav-bar class="nav-title-slide-ios7 bar-positive">
      <ion-nav-back-button class="button-icon ion-arrow-left-c">

    <ion-nav-view animation="slide-in-up"></ion-nav-view>

    <script id="templates/tabs.html" type="text/ng-template">
      <ion-tabs class="tabs-icon-top tabs-positive">

        <ion-tab title="Home" icon="ion-home" href="#/tab/home">
          <ion-nav-view name="home-tab" animation="slide-in-up"></ion-nav-view>


    <script id="templates/home.html" type="text/ng-template">
      <ion-view animation="slide-in-up" title="Home">
        <ion-content class="padding">
            <a class="button icon icon-right ion-chevron-right" href="#/tab/facts">Scientific Facts</a>

    <script id="templates/facts.html" type="text/ng-template">
      <ion-view animation="slide-in-up" title="Facts">
        <ion-content class="padding">          
          <p>Polar bears are left handed.</p>
          <p><a class="button icon ion-home" href="#/tab/home">Home</a></p>


And JS like this:

angular.module('ionicApp', ['ionic'])

.config(function($stateProvider, $urlRouterProvider) {

    .state('tabs', {
      url: "/tab",
      abstract: true,
      templateUrl: "templates/tabs.html"
    .state('tabs.home', {
      url: "/home",
      views: {
        'home-tab': {
          templateUrl: "templates/home.html",
          controller: 'HomeTabCtrl'
    .state('tabs.facts', {
      url: "/facts",
      views: {
        'home-tab': {
          templateUrl: "templates/facts.html"



.controller('HomeTabCtrl', function($scope) {

Unfortunately it doesn’t work. Have no idea why.

1 Like