Improve nav layout

This commit is contained in:
2018-12-18 18:53:09 +00:00
parent f0289a8b8f
commit c2a172cbd7
7 changed files with 80 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
export default class Image {
constructor(image) {
this.image = image;
this.dataset = image.dataset;
}
fadeIn() {
@@ -8,6 +9,9 @@ export default class Image {
}
start() {
if (this.dataset.loadTransition === 'false') {
return;
}
this.image.style.opacity = 0;
if (this.image.complete) {
this.fadeIn();