Skip to content

Commit

Permalink
chore(animejs): better loading visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Nov 2, 2018
1 parent 5c80316 commit 43f90c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/plugin/animejs.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if (plugin !== false) { %>
<% if (head) { %>
<style>body{opacity: 0}</style>
<style>body>.navbar,body>.section,body>.footer{opacity: 0}</style>
<% } else { %>
<%- js(cdn('animejs', '2.2.0', 'anime.js')) %>
<script>
Expand All @@ -12,7 +12,7 @@
}
$(document).ready(function () {
$('body').css('opacity', 1);
$('body>.navbar,body>.section,body>.footer').css('opacity', 1);
if (!isIE()) {
['.column-main > .card',
'.column-left > .card',
Expand Down

0 comments on commit 43f90c6

Please sign in to comment.