From e9e05c9a9f8ee7a99067364b38b706ae514b716f Mon Sep 17 00:00:00 2001 From: khaydarov Date: Sat, 28 Jan 2017 22:54:04 +0300 Subject: [PATCH] apply filter blur immediatelly (#137) --- plugins/quote/quote.css | 2 +- plugins/quote/quote.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/quote/quote.css b/plugins/quote/quote.css index e21dfd9b..68ceec5f 100644 --- a/plugins/quote/quote.css +++ b/plugins/quote/quote.css @@ -127,7 +127,7 @@ .authorsPhoto-wrapper { border: 0 !important; - transition: all 500ms ease-in; + transition: all 20ms ease-in; will-change: opacity, filter; } diff --git a/plugins/quote/quote.js b/plugins/quote/quote.js index 502935fe..752f5a37 100644 --- a/plugins/quote/quote.js +++ b/plugins/quote/quote.js @@ -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); },