From c5cab5500202d3fed9e698f52b953e6bd53290e6 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Wed, 11 Oct 2023 16:36:01 +1100 Subject: [PATCH] add animations to all text --- src/SEQTA.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/SEQTA.js b/src/SEQTA.js index a443a21c..0d1fa648 100644 --- a/src/SEQTA.js +++ b/src/SEQTA.js @@ -1,5 +1,5 @@ /*global chrome*/ -import { animate, spring } from "motion"; +import { animate, spring, stagger } from "motion"; import Color from "color"; import ShortcutLinks from "./seqta/content/links.json"; @@ -186,6 +186,16 @@ function OpenWhatsNewPopup() { { easing: spring({ stiffness: 220, damping: 18 }) } ); + animate( + ".whatsnewTextContainer *", + { opacity: [0, 1], y: [10, 0] }, + { + delay: stagger(0.05, { start: 0.1 }), + duration: 0.5, + easing: [.22, .03, .26, 1] + } + ); + chrome.storage.local.remove(["justupdated"]); bkelement.addEventListener("click", function (event) {