aboutsummaryrefslogtreecommitdiff
path: root/styles
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-05-25 16:11:54 +0200
committerlonkaars <loek@pipeframe.xyz>2021-05-25 16:11:54 +0200
commit4562c60cf284a97ae1fa861480b0916f5fb7c453 (patch)
tree5d6b0cf373671961ad3554455a2dd9684321b9a4 /styles
parent2d7acc472ee4f4a37556f41a0ea6ffec8b7b0e26 (diff)
ghost for adding keyframes :tada:
Diffstat (limited to 'styles')
-rw-r--r--styles/editor.css13
-rw-r--r--styles/keyframes.css5
2 files changed, 17 insertions, 1 deletions
diff --git a/styles/editor.css b/styles/editor.css
index 1a1a91f..7eda309 100644
--- a/styles/editor.css
+++ b/styles/editor.css
@@ -169,6 +169,19 @@
width: calc(var(--zoom) * var(--total-frames) * 1px);
}
+.appGrid .timeline .ghostArea {
+ pointer-events: none;
+ line-height: 0;
+ transition-property: opacity;
+ transition-duration: 150ms;
+ opacity: 0;
+ color: var(--gruble);
+}
+
+.appGrid .timeline:hover .ghostArea.active {
+ opacity: 1;
+}
+
.appGrid .timeline .keyframes .frame {
background-color: transparent;
height: 100%;
diff --git a/styles/keyframes.css b/styles/keyframes.css
index 49c8e4e..8a4f06f 100644
--- a/styles/keyframes.css
+++ b/styles/keyframes.css
@@ -39,7 +39,10 @@
z-index: 1;
}
-.keyframe > * {
+.keyframe {
+ line-height: 0;
fill: currentColor;
}
+.keyframe.ghost .background { opacity: .2; }
+.keyframe.ghost .outline { opacity: .7; }