mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-06 05:51:30 -08:00
A different animation for hiding notifications
Only slightly different, but it seems to add visual interest
This commit is contained in:
parent
c885dabdb7
commit
8796f312cb
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ Notifier.prototype.display = function(title,options) {
|
|||
$tw.utils.forceLayout(notification);
|
||||
$tw.utils.setStyle(notification,[
|
||||
{opacity: "0.0"},
|
||||
{transform: "translateY(" + (-window.innerHeight) + "px)"}
|
||||
{transform: "translateX(" + (notification.offsetWidth) + "px)"}
|
||||
]);
|
||||
// Set up an event for the transition end
|
||||
notification.addEventListener($tw.utils.convertEventName("transitionEnd"),function(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue