-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: keyboard shortcuts ui gestures (#149)
Refactor the overlay-play component and rename it to overlay-action which can display overlay action gesture of any kind of icon. Added store for the overlay-action component. Using this store the keyboard component (or any other component) can call updateOverlayActionIcon(...) and supply an icon/s. The overlay-action component will know to display the correct icon based on the updated iconType prop. Fix the overlay animation to look like in Hillel's demo.
- Loading branch information
Dan Ziv
authored
Jan 10, 2018
1 parent
8ab4980
commit 9e922db
Showing
23 changed files
with
421 additions
and
16,136 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
@keyframes overlayActionIconIn { | ||
0% { | ||
opacity: 0; | ||
transform: scale(0); | ||
} | ||
10% { | ||
opacity: 0.1; | ||
transform: scale(0.1); | ||
} | ||
20% { | ||
opacity: 0.3; | ||
transform: scale(0.2); | ||
} | ||
30% { | ||
opacity: 0.5; | ||
transform: scale(0.3); | ||
} | ||
40% { | ||
opacity: 0.7; | ||
transform: scale(0.4); | ||
} | ||
50% { | ||
opacity: 0.9; | ||
transform: scale(0.5); | ||
} | ||
60% { | ||
opacity: 0.9; | ||
transform: scale(0.5); | ||
} | ||
70% { | ||
opacity: 0.9; | ||
transform: scale(0.5); | ||
} | ||
75% { | ||
opacity: 0.9; | ||
transform: scale(0.5); | ||
} | ||
80% { | ||
opacity: 1; | ||
transform: scale(0.5); | ||
} | ||
85% { | ||
opacity: 1; | ||
transform: scale(0.5); | ||
} | ||
90% { | ||
opacity: 1; | ||
transform: scale(0.5); | ||
} | ||
93% { | ||
opacity: 0.7; | ||
transform: scale(0.5); | ||
} | ||
95% { | ||
opacity: 0.5; | ||
transform: scale(0.5); | ||
} | ||
98% { | ||
opacity: 0.2; | ||
transform: scale(0.5); | ||
} | ||
100% { | ||
opacity: 0.0; | ||
transform: scale(0.5); | ||
} | ||
} | ||
|
||
.overlay-action { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
|
||
&.in .icon { | ||
animation: overlayActionIconIn 300ms linear forwards; | ||
} | ||
|
||
.icon { | ||
width: 144px; | ||
height: 144px; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
margin: -72px 0 0 -72px; | ||
opacity: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default from './overlay-action'; |
Oops, something went wrong.