2018-11-14 03:50:42 +00:00
|
|
|
(function () {
|
|
|
|
function $() {
|
|
|
|
return Array.prototype.slice.call(document.querySelectorAll.apply(document, arguments));
|
2018-11-11 22:41:07 +00:00
|
|
|
}
|
|
|
|
|
2018-11-14 03:50:42 +00:00
|
|
|
$('body > .navbar, body > .section, body > .footer').forEach(function (element) {
|
|
|
|
element.style.transition = '0s';
|
|
|
|
element.style.opacity = '0';
|
|
|
|
});
|
|
|
|
document.querySelector('body > .navbar').style.transform = 'translateY(-100px)';
|
2018-11-24 07:26:51 +00:00
|
|
|
['.column-main > .card',
|
|
|
|
'.column-left > .card, .column-right-shadow > .card',
|
|
|
|
'.column-right > .card'].map(function (selector) {
|
2018-11-14 03:50:42 +00:00
|
|
|
$(selector).forEach(function (element) {
|
|
|
|
element.style.transition = '0s';
|
|
|
|
element.style.opacity = '0';
|
|
|
|
element.style.transform = 'scale(0.8)';
|
|
|
|
element.style.transformOrigin = 'center top';
|
2018-11-11 22:41:07 +00:00
|
|
|
});
|
2018-11-14 03:50:42 +00:00
|
|
|
});
|
|
|
|
setTimeout(function () {
|
|
|
|
$('body > .navbar, body > .section, body > .footer').forEach(function (element) {
|
|
|
|
element.style.opacity = '1';
|
|
|
|
element.style.transition = 'opacity 0.3s ease-out, transform 0.3s ease-out';
|
|
|
|
});
|
|
|
|
document.querySelector('body > .navbar').style.transform = 'translateY(0)';
|
2018-11-24 07:26:51 +00:00
|
|
|
['.column-main > .card',
|
|
|
|
'.column-left > .card, .column-right-shadow > .card',
|
|
|
|
'.column-right > .card'].map(function (selector) {
|
2018-11-14 03:50:42 +00:00
|
|
|
var i = 1;
|
|
|
|
$(selector).forEach(function (element) {
|
|
|
|
setTimeout(function () {
|
|
|
|
element.style.opacity = '1';
|
2018-12-09 17:02:55 +00:00
|
|
|
element.style.transform = '';
|
2018-11-14 03:50:42 +00:00
|
|
|
element.style.transition = 'opacity 0.3s ease-out, transform 0.3s ease-out';
|
|
|
|
}, i * 100);
|
|
|
|
i++;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})();
|