Added initial class to prevent animations on plain pages
This commit is contained in:
parent
0e21c8aa48
commit
ef566fe7b3
@ -9,6 +9,7 @@ $(document).ready(function(){
|
|||||||
$("body").animate({
|
$("body").animate({
|
||||||
scrollTop: 0
|
scrollTop: 0
|
||||||
}, 400);
|
}, 400);
|
||||||
|
container.removeClass("initial-load");
|
||||||
container.addClass("is-exiting");
|
container.addClass("is-exiting");
|
||||||
smoothState.restartCSSAnimations();
|
smoothState.restartCSSAnimations();
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,9 @@ body{
|
|||||||
@at-root .animations#{&}{
|
@at-root .animations#{&}{
|
||||||
animation-name: slideInUp;
|
animation-name: slideInUp;
|
||||||
}
|
}
|
||||||
|
@at-root .animations.initial-load#{&}{
|
||||||
|
animation-name: none;
|
||||||
|
}
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: black;
|
color: black;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
@ -99,6 +102,9 @@ body{
|
|||||||
@at-root .animations#{&}{
|
@at-root .animations#{&}{
|
||||||
animation-name: fadeInUp;
|
animation-name: fadeInUp;
|
||||||
}
|
}
|
||||||
|
@at-root .animations.initial-load#{&}{
|
||||||
|
animation-name: none;
|
||||||
|
}
|
||||||
>#headerimg{
|
>#headerimg{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - 165px + 50px);
|
height: calc(100vh - 165px + 50px);
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<% }) %>
|
<% }) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="content" class="animations<% if(document.addclass){ %> <%= document.addclass %><% } %>" data-slug="<%- document.slug %>">
|
<div id="content" class="animations<% if(document.addclass){ %> <%= document.addclass %><% } %> initial-load" data-slug="<%- document.slug %>">
|
||||||
<meta data-menu="<%= document.url.split("/")[1] %>" data-slug="<%- document.slug %>" />
|
<meta data-menu="<%= document.url.split("/")[1] %>" data-slug="<%- document.slug %>" />
|
||||||
<%- content.replace("-split-", "") %>
|
<%- content.replace("-split-", "") %>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user