mirror of
https://github.com/codex-team/editor.js
synced 2024-06-19 22:25:23 +02:00
apply filter blur immediatelly (#137)
This commit is contained in:
parent
664e01a020
commit
e9e05c9a9f
|
@ -127,7 +127,7 @@
|
|||
|
||||
.authorsPhoto-wrapper {
|
||||
border: 0 !important;
|
||||
transition: all 500ms ease-in;
|
||||
transition: all 20ms ease-in;
|
||||
will-change: opacity, filter;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue