From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH yew-widget-toolkit-assets 2/6] page: add more page animation styles
Date: Fri, 27 Jun 2025 14:08:44 +0200 [thread overview]
Message-ID: <20250627120859.3723554-3-d.csapak@proxmox.com> (raw)
In-Reply-To: <20250627120859.3723554-1-d.csapak@proxmox.com>
* 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 <d.csapak@proxmox.com>
---
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
next prev parent reply other threads:[~2025-06-27 12:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 12:08 [yew-devel] [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 00/17] various touch improvements Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit-assets 1/6] reset: remove the tap highlight color for chrome Dominik Csapak
2025-06-27 12:08 ` Dominik Csapak [this message]
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit-assets 3/6] page: animations: reverse the direction on X axis for RTL mode Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit-assets 4/6] application bar: reduce horizontal padding Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit-assets 5/6] application bar: reverse back arrow for rtl Dominik Csapak
2025-06-27 12:54 ` Shannon Sterz
2025-06-27 13:38 ` Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit-assets 6/6] buttons: rework fab menu Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 01/11] widget: implement Image widget Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 02/11] widget: button: don't hardcode icons font size Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 03/11] touch: page stack: add more animations Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 04/11] touch: application bar: set custom class on back button Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 05/11] touch: material app: allow pass through of page animation style Dominik Csapak
2025-06-27 13:37 ` Shannon Sterz
2025-06-27 13:38 ` Dominik Csapak
2025-06-27 14:32 ` Dietmar Maurer
2025-06-27 14:40 ` Shannon Sterz
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 06/11] touch: scaffold: fix overflow setting for body Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 07/11] touch: scaffold: use direction independent positioning for the FAB Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 08/11] touch: fab: add size option Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 09/11] touch: fab: convert to widget macro Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 10/11] touch: fab menu: " Dominik Csapak
2025-06-27 12:08 ` [yew-devel] [PATCH yew-widget-toolkit 11/11] touch: fab menu: rework fab menu Dominik Csapak
2025-06-30 8:25 ` [yew-devel] [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 00/17] various touch improvements Dominik Csapak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250627120859.3723554-3-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox