Skip to content

Commit

Permalink
Update gesturevt demo
Browse files Browse the repository at this point in the history
  • Loading branch information
bokand committed Aug 6, 2024
1 parent 0339db2 commit d168987
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 7 deletions.
1 change: 0 additions & 1 deletion gesturevt/assets/index-f9ff1ce0.js

This file was deleted.

56 changes: 50 additions & 6 deletions gesturevt/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<script type="module" crossorigin src="/gesturevt/assets/index-f9ff1ce0.js"></script>
<script type="module" crossorigin src="/gesturevt/assets/index-dfc8859e.js"></script>

<meta name="viewport" content="width=device-width, minimum-scale=1">

Expand All @@ -11,7 +11,7 @@
}
#backarea {
position: fixed;
width: 100px;
width: 100%;
height: 100%;
left: 0;
top: 0;
Expand Down Expand Up @@ -67,13 +67,18 @@
top: 0;
}

/* style for the top screen in the stack */
.screen.top {
/* The screen that's moved by an active gesture */
.screen.active {
animation-timeline: --progress-timeline;
animation-fill-mode: forwards;
animation-timing-function: linear;
}

/* style for the top screen in the stack */
.screen.top {
z-index: 1;
}

/* style for when the gesture is commited and the screen animating to exit */
.screen.end {
animation-fill-mode: forwards;
Expand All @@ -96,18 +101,33 @@
}
}

@keyframes screenswipe {
@keyframes builtinback {
to {
transform: translateX(100vw);
}
}

@keyframes screenswipeend {
@keyframes builtinbackend {
to {
transform: translateX(150vw);
}
}

@keyframes slidefromleft {
from {
transform: translateX(-100vw);
}
to {
transform: translateX(0vw);
}
}

@keyframes slidefromleftend{
to {
transform: translateX(0vw);
}
}

@keyframes shrink {
to {
transform: scale(0.7);
Expand All @@ -119,6 +139,30 @@
transform: scale(0);
}
}

@keyframes gmailshrink {
to {
transform: scale(0.9);
}
}

@keyframes gmailshrinkend {
to {
transform: translateY(-20vh) scale(0.01);
}
}

@keyframes spin {
to {
transform: rotateX(15deg) rotateY(45deg);
}
}

@keyframes spinend {
to {
transform: rotateX(30deg) rotateY(280deg) scale(0.5);
}
}
</style>

<div id="progressScroller" class="scroller">
Expand Down
Binary file removed gesturevt/resources/banana-pie-srp.png
Binary file not shown.
Binary file removed gesturevt/resources/goo.gl-stock-a.png
Binary file not shown.
Binary file removed gesturevt/resources/goo.gl-stock-b.png
Binary file not shown.
Binary file removed gesturevt/resources/news-article.png
Binary file not shown.
Binary file removed gesturevt/resources/news-frontpage.png
Binary file not shown.
Binary file removed gesturevt/resources/pants-hemming-srp.png
Binary file not shown.
Binary file removed gesturevt/resources/pants-srp.png
Binary file not shown.
Binary file removed gesturevt/resources/srp-cats.png
Binary file not shown.
Binary file removed gesturevt/resources/srp-couches.png
Binary file not shown.

0 comments on commit d168987

Please sign in to comment.