Skip to content

Commit 6be3a8e

Browse files
author
Adam Argyle
committed
cuts new build with cinematics
1 parent 213a781 commit 6be3a8e

10 files changed

Lines changed: 43 additions & 36 deletions

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "transition-style",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"author": "Adam Argyle",
55
"description": "just add water clip-path mask transitions",
66
"license": "ISC",
@@ -39,5 +39,6 @@
3939
"postcss-easings": "^2.0.0",
4040
"postcss-import": "^12.0.1",
4141
"postcss-loader": "^3.0.0"
42-
}
42+
},
43+
"dependencies": {}
4344
}

src/wipes/_includes.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@
1616
@import "out-top-right.css";
1717
@import "out-top-left.css";
1818
@import "out-bottom-right.css";
19-
@import "out-bottom-left.css";
19+
@import "out-bottom-left.css";
20+
21+
@import "out-cinematic.css";
22+
@import "in-cinematic.css";

src/wipes/_vars.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@
1414
--wipe-top-right-out: polygon(50% -50%, 150% 50%, 150% 50%, 50% -50%);
1515
--wipe-bottom-left-out: polygon(-50% 50%, 50% 150%, 50% 150%, -50% 50%);
1616
--wipe-bottom-right-out: polygon(150% 50%, 150% 50%, 50% 150%, 50% 150%);
17+
18+
--wipe-cinematic-out: inset(100% 0 100% 0);
19+
--wipe-cinematic-mid: inset(10% 0 10% 0);
1720
}

src/wipes/cinematic-in.css

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/wipes/cinematic-out.css

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/wipes/in-cinematic.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@keyframes wipe-cinematic-in {
2+
0% {
3+
clip-path: var(--wipe-cinematic-out);
4+
}
5+
30%, 70% {
6+
clip-path: var(--wipe-cinematic-mid);
7+
}
8+
100% {
9+
clip-path: var(--wipe-in);
10+
}
11+
}
12+
13+
[transition-style="in:wipe:cinematic"] {
14+
animation-name: wipe-cinematic-in;
15+
}

src/wipes/out-cinematic.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@keyframes wipe-cinematic-out {
2+
0% {
3+
clip-path: var(--wipe-in);
4+
}
5+
30%, 70% {
6+
clip-path: var(--wipe-cinematic-mid);
7+
}
8+
100% {
9+
clip-path: var(--wipe-cinematic-out);
10+
}
11+
}
12+
13+
[transition-style="out:wipe:cinematic"] {
14+
animation-name: wipe-cinematic-out;
15+
}

transition.hackpack.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

transition.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)