apply filter blur immediatelly (#137)

This commit is contained in:
khaydarov 2017-01-28 22:54:04 +03:00 committed by Peter Savchenko
parent 664e01a020
commit e9e05c9a9f
2 changed files with 4 additions and 4 deletions

View file

@ -127,7 +127,7 @@
.authorsPhoto-wrapper {
border: 0 !important;
transition: all 500ms ease-in;
transition: all 20ms ease-in;
will-change: opacity, filter;
}

View file

@ -342,14 +342,14 @@ var quote = (function(quote) {
var uploadImageWrapper = codex.content.currentNode.querySelector('.' + elementClasses_.withPhoto.photo),
authorsPhoto = ui_.img(elementClasses_.authorsPhoto);
/** Appending uploaded image */
uploadImageWrapper.classList.add(elementClasses_.authorsPhotoWrapper, elementClasses_.authorsPhotoWrapper_preview);
authorsPhoto.src = e.target.result;
/** Remove icon from image wrapper */
uploadImageWrapper.innerHTML = '';
/** Appending uploaded image */
uploadImageWrapper.classList.add(elementClasses_.authorsPhotoWrapper, elementClasses_.authorsPhotoWrapper_preview);
uploadImageWrapper.appendChild(authorsPhoto);
},