diff --git a/css/demo.css b/css/demo.css index d127e10..cf373f6 100644 --- a/css/demo.css +++ b/css/demo.css @@ -36,7 +36,7 @@ a:focus { width: 1.5em; height: 1.5em; margin: 0 auto; - fill: currentColor; + fill: red; } .view { diff --git a/css/test.html b/css/test.html new file mode 100644 index 0000000..b6bf4bf --- /dev/null +++ b/css/test.html @@ -0,0 +1,599 @@ + + +
Hello
diff --git a/index2.html b/index2.html index 5934797..c200c5d 100644 --- a/index2.html +++ b/index2.html @@ -7,7 +7,6 @@ - @@ -81,14 +80,8 @@

+
+ +

03/09/2017

@@ -160,9 +155,6 @@

energetic

-
- -
@@ -198,21 +190,12 @@

Enter Address/Contract name

-
+
- - +
+
@@ -224,12 +207,13 @@ \ No newline at end of file diff --git a/js/tabsnav.js b/js/tabsnav.js index 0b30ed6..6f80c76 100644 --- a/js/tabsnav.js +++ b/js/tabsnav.js @@ -138,9 +138,11 @@ } this.isAnimating = true; + // Update current value (index of the current tab). this.current = this.DOM.tabs.indexOf(tab); + var bounds = tab.getBoundingClientRect(), currentDimensions = { left: bounds.left, top: bounds.top, width: bounds.width, height: bounds.height }, self = this; @@ -302,7 +304,7 @@ this.DOM.el.classList.remove('tabsnav--hidden'); - // Animate bars. + // Animate bars anime.remove(this.DOM.bars); var animeBars = { targets: this.DOM.bars, @@ -344,6 +346,8 @@ this.isVisible = false; + console.log(this.DOM); + this.DOM.bars.forEach(function(bar) { // Set transform origin. bar.style.transformOrigin = '50% 50%';