Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
How do I add a transition to a specific page in my Vue/Nuxt build?
Post Body

I'm doing mobile first development. I have a menu with items on it. I click on the menu item and it takes me to a whole new screen, using a new layout file. That layout file has a back button on it. I have it set up to go back one page. That all works.

video of transitions not working: https://streamable.com/gnsjx

I am expecting it to slide back and forth between the pages

I'm trying to add a transition between this page and its parent page. I can't get it working at the moment with this setup:

HTML:

<template>
  <nav>
    <transition name="slide">
      <div @click="goBack()" class="go-back-a-page">
        <i class="fa fa-2x fa-angle-left"></i>
      </div>
    </transition>
  </nav>
</template>

JS:

export default {
  transition: 'slide',
  ...
}

CSS:

.slide-leave-active,
.slide-enter-active {
  transition: 0.5s;
}
.slide-enter {
  transform: translate(100%, 0);
}
.slide-leave-to {
  transform: translate(-100%, 0);
}

When I click back, it just immediately flicks back. No transition. Can anyone advise on where I'm going wrong?

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
692,980
Link Karma
149,429
Comment Karma
541,007
Profile updated: 2 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago