diff --git a/src/documents/index.html b/src/documents/index.html index c88e754..d19b321 100644 --- a/src/documents/index.html +++ b/src/documents/index.html @@ -4,6 +4,6 @@ title: "Home" icon: "home" order: 0 --- -
+
Hello World!
diff --git a/src/documents/script.js b/src/documents/script.js index 84ff16e..bc5492f 100644 --- a/src/documents/script.js +++ b/src/documents/script.js @@ -5,15 +5,15 @@ $(document).ready(function(){ prefetch: true, debug: true, onStart: { - duration: 250, + duration: 400, render: function (container, url) { - container.addClass('is-exiting'); + container.addClass("is-exiting"); smoothState.restartCSSAnimations(); } }, onReady: { duration: 0, - render: function (container, newContent) { + render: function (container, newContent){ container.removeClass("is-exiting"); container.attr("data-slug", $(newContent).filter("meta").data("slug")) container.html(newContent); diff --git a/src/documents/styles.css.scss b/src/documents/styles.css.scss index b4e6753..17f6f1a 100644 --- a/src/documents/styles.css.scss +++ b/src/documents/styles.css.scss @@ -81,16 +81,22 @@ body{ } -.m-scene .scene_element { - animation-duration: 0.25s; +.animations .animated{ + animation-duration: 0.4s; transition-timing-function: ease-in; animation-fill-mode: both; } -.m-scene .scene_element--fadein { - animation-name: slideInUp; -} - -.m-scene.is-exiting .scene_element { +.animations.is-exiting .animated{ animation-direction: alternate-reverse; } + +.animations[data-slug="index"]{ + >div{ + animation-name: slideInRight; + } +} + +.animations #lightcontent{ + animation-name: slideInUp; +} diff --git a/src/layouts/contentpage.html.ejs b/src/layouts/contentpage.html.ejs index bb0717e..9ee4f13 100644 --- a/src/layouts/contentpage.html.ejs +++ b/src/layouts/contentpage.html.ejs @@ -2,7 +2,7 @@ layout: core.html --- -
+
<%- content %>
diff --git a/src/layouts/core.html.ejs b/src/layouts/core.html.ejs index 6aed203..006bb7a 100644 --- a/src/layouts/core.html.ejs +++ b/src/layouts/core.html.ejs @@ -20,7 +20,7 @@ <% }) %>
-
+
" data-slug="<%- document.slug %>" /> <%- content %>