kopia lustrzana https://github.com/miklobit/TiddlyWiki5
A different animation for hiding notifications
Only slightly different, but it seems to add visual interestprint-window-tiddler
rodzic
c885dabdb7
commit
8796f312cb
|
@ -64,7 +64,7 @@ Notifier.prototype.display = function(title,options) {
|
||||||
$tw.utils.forceLayout(notification);
|
$tw.utils.forceLayout(notification);
|
||||||
$tw.utils.setStyle(notification,[
|
$tw.utils.setStyle(notification,[
|
||||||
{opacity: "0.0"},
|
{opacity: "0.0"},
|
||||||
{transform: "translateY(" + (-window.innerHeight) + "px)"}
|
{transform: "translateX(" + (notification.offsetWidth) + "px)"}
|
||||||
]);
|
]);
|
||||||
// Set up an event for the transition end
|
// Set up an event for the transition end
|
||||||
notification.addEventListener($tw.utils.convertEventName("transitionEnd"),function(event) {
|
notification.addEventListener($tw.utils.convertEventName("transitionEnd"),function(event) {
|
||||||
|
|
Ładowanie…
Reference in New Issue