Disable transitions on page load

This commit is contained in:
Eric Lippmann 2015-12-15 13:29:30 +01:00
parent 4a10e2d758
commit 99f0a348c5
3 changed files with 11 additions and 1 deletions

View File

@ -48,7 +48,7 @@ $innerLayoutScript = $this->layout()->innerLayout . '.phtml';
<![endif]-->
<link type="image/png" rel="shortcut icon" href="<?= $this->baseUrl('img/favicon.png') ?>" />
</head>
<body id="body">
<body id="body" class="loading">
<pre id="responsive-debug"></pre>
<div id="layout" class="default-layout<?php if ($showFullscreen): ?> fullscreen-layout<?php endif ?>">
<?= $this->render($innerLayoutScript); ?>

View File

@ -137,3 +137,12 @@ td, th {
margin-left: 0;
}
}
// Styles for when the page is loading. JS will remove this class once the document is ready
.loading * {
// Disable all transition on page load
-webkit-transition: none !important;
-moz-transition: none !important;
-o-transition: none !important;
transition: none !important;
}

View File

@ -161,6 +161,7 @@
},
onLoad: function (event) {
$('body').removeClass('loading');
//$('.container').trigger('rendered');
},