From 56a671b00199de1b6ba9f1a8a810ea30d8107677 Mon Sep 17 00:00:00 2001 From: fillotassi Date: Mon, 17 Sep 2018 20:34:36 +0200 Subject: [PATCH] Add bar-transparency on slider drag --- components/sequencer.vue | 21 ++++++++++++--------- pages/index.vue | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/components/sequencer.vue b/components/sequencer.vue index ee80e4a..d485ef8 100644 --- a/components/sequencer.vue +++ b/components/sequencer.vue @@ -2,7 +2,7 @@
-
+
@@ -10,12 +10,12 @@
- + - +
-
+
@@ -61,11 +61,10 @@ }, hideControls: function (){ this.controlIsDisplayed = false; - } - /*, - barOpacity: function (){ - this.setOpacity = true; - }*/, + }, + setTransparency: function (){ + this.barIsTransparent = true; + }, bjorklund: function (slots, pulses) { var pattern = [], @@ -206,6 +205,10 @@ overflow-x: auto; } +.transparentBar{ + opacity:0.5; +} + .sequence-bar{ display:none; } diff --git a/pages/index.vue b/pages/index.vue index 9ed73dc..bac0bf9 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -45,7 +45,7 @@ export default { slotSlider: 16, pulseSlider: 3, euclideanList: [], - controlIsDisplayed: false }); + barIsTransparent: false }); }, getSequencerData: function(){ var modelEsp = {