From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id BF2F61FF187 for ; Mon, 30 Jun 2025 10:24:35 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id EA28F16328; Mon, 30 Jun 2025 10:25:12 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com Date: Mon, 30 Jun 2025 10:24:52 +0200 Message-Id: <20250630082509.1202308-3-d.csapak@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250630082509.1202308-1-d.csapak@proxmox.com> References: <20250630082509.1202308-1-d.csapak@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.022 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [yew-devel] [PATCH yew-widget-toolkit-assets v2 2/7] page: add more page animation styles X-BeenThere: yew-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Yew framework devel list at Proxmox List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Yew framework devel list at Proxmox Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: yew-devel-bounces@lists.proxmox.com Sender: "yew-devel" * fade-from-right: same as fade, but the new page moves in from the right * fade-from-bottom: same as above, but moves in from the bottom * flip: flips the page like a card and reveals the new page on the backside Signed-off-by: Dominik Csapak --- scss/_page.scss | 86 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/scss/_page.scss b/scss/_page.scss index d76100c..4fb9295 100644 --- a/scss/_page.scss +++ b/scss/_page.scss @@ -4,6 +4,10 @@ --page-animation-out: page-animation-push-out var(--page-animation-time) ease-out; } +.pwt-page-outer { + perspective: 1000px; +} + .pwt-page-container { top: 0; left: 0; @@ -57,6 +61,72 @@ } } +@keyframes page-animation-fade-from-right-in { + from { + opacity: 0; + transform: translateX(10%); + } + to { + opacity: 1; + transform: translateX(0%); + } +} + +@keyframes page-animation-fade-from-bottom-in { + from { + opacity: 0; + transform: translateY(10%); + } + to { + opacity: 1; + transform: translateY(0%); + } +} + +@keyframes page-animation-flip-in { + 0% { + opacity: 0; + transform: rotateY(180deg); + } + + 50% { + opacity: 0; + transform: rotateY(90deg); + } + + 51% { + opacity: 1; + transform: rotateY(90deg); + } + + 100% { + opacity: 1; + transform: rotateY(0deg); + } +} + +@keyframes page-animation-flip-out { + 0% { + opacity: 1; + transform: rotateY(0deg); + } + + 50% { + opacity: 1; + transform: rotateY(-90deg); + } + + 51% { + opacity: 0; + transform: rotateY(-90deg); + } + + 100% { + opacity: 0; + transform: rotateY(180deg); + } +} + @keyframes page-animation-cover-in { from { transform: translateX(100%); @@ -108,6 +178,22 @@ --page-animation-out: page-animation-fade-out var(--page-animation-time) ease-out; } +.pwt-page-animation-fade-from-right { + --page-animation-in: page-animation-fade-from-right-in var(--page-animation-time) ease-out; + --page-animation-out: page-animation-fade-out var(--page-animation-time) ease-out; +} + +.pwt-page-animation-fade-from-bottom { + --page-animation-in: page-animation-fade-from-bottom-in var(--page-animation-time) ease-out; + --page-animation-out: page-animation-fade-out var(--page-animation-time) ease-out; +} + +.pwt-page-animation-flip { + transform-style: preserve-3d; + --page-animation-in: page-animation-flip-in var(--page-animation-time) ease-out; + --page-animation-out: page-animation-flip-out var(--page-animation-time) ease-out; +} + .pwt-page-animation-cover { --page-animation-in: page-animation-cover-in var(--page-animation-time) ease-out; --page-animation-out: page-animation-cover-out var(--page-animation-time) ease-out; -- 2.39.5 _______________________________________________ yew-devel mailing list yew-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel