From 50fa31ea988a5a8264b8b5c7843b6106ee3ee8ab Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Mon, 9 Mar 2020 23:07:21 +0530 Subject: [PATCH] Animate infinite-scroll transitions --- src/pages/Index.vue | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/src/pages/Index.vue b/src/pages/Index.vue index e1cd868..faa69e9 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -23,23 +23,23 @@
-
+ - - -
- That's it! You've scrolled through all the articles. - Now, how about writing one yourself? -
-
- Sorry, no posts yet :( -
-
-
- -
+ + + +
+ That's it! You've scrolled through all the articles. + Now, how about writing one yourself? +
+
+ Sorry, no posts yet :( +
+
+
+
@@ -65,6 +65,16 @@ padding: 2rem; } +.fade-enter-active, +.fade-leave-active { + transition: ease opacity 1s; +} + +.fade-enter, +.fade-leave-to { + opacity: 0; +} +