Skip to content

Commit

Permalink
cuts new build with cinematics
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink committed Oct 10, 2022
1 parent 213a781 commit 6be3a8e
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 36 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "transition-style",
"version": "0.1.2",
"version": "0.1.3",
"author": "Adam Argyle",
"description": "just add water clip-path mask transitions",
"license": "ISC",
Expand Down Expand Up @@ -39,5 +39,6 @@
"postcss-easings": "^2.0.0",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0"
}
},
"dependencies": {}
}
5 changes: 4 additions & 1 deletion src/wipes/_includes.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
@import "out-top-right.css";
@import "out-top-left.css";
@import "out-bottom-right.css";
@import "out-bottom-left.css";
@import "out-bottom-left.css";

@import "out-cinematic.css";
@import "in-cinematic.css";
3 changes: 3 additions & 0 deletions src/wipes/_vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
--wipe-top-right-out: polygon(50% -50%, 150% 50%, 150% 50%, 50% -50%);
--wipe-bottom-left-out: polygon(-50% 50%, 50% 150%, 50% 150%, -50% 50%);
--wipe-bottom-right-out: polygon(150% 50%, 150% 50%, 50% 150%, 50% 150%);

--wipe-cinematic-out: inset(100% 0 100% 0);
--wipe-cinematic-mid: inset(10% 0 10% 0);
}
15 changes: 0 additions & 15 deletions src/wipes/cinematic-in.css

This file was deleted.

15 changes: 0 additions & 15 deletions src/wipes/cinematic-out.css

This file was deleted.

15 changes: 15 additions & 0 deletions src/wipes/in-cinematic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@keyframes wipe-cinematic-in {
0% {
clip-path: var(--wipe-cinematic-out);
}
30%, 70% {
clip-path: var(--wipe-cinematic-mid);
}
100% {
clip-path: var(--wipe-in);
}
}

[transition-style="in:wipe:cinematic"] {
animation-name: wipe-cinematic-in;
}
15 changes: 15 additions & 0 deletions src/wipes/out-cinematic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@keyframes wipe-cinematic-out {
0% {
clip-path: var(--wipe-in);
}
30%, 70% {
clip-path: var(--wipe-cinematic-mid);
}
100% {
clip-path: var(--wipe-cinematic-out);
}
}

[transition-style="out:wipe:cinematic"] {
animation-name: wipe-cinematic-out;
}
2 changes: 1 addition & 1 deletion transition.hackpack.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion transition.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 6be3a8e

Please sign in to comment.