From a178438c919bb5c3f781256a7975a842f7349a21 Mon Sep 17 00:00:00 2001 From: Jono Brandel Date: Thu, 3 Feb 2011 14:40:02 -0800 Subject: [PATCH] merged css3 transitions --- demo/demo.css | 13 ------------- index.html | 12 ------------ 2 files changed, 25 deletions(-) diff --git a/demo/demo.css b/demo/demo.css index 90a7af4..bcf6203 100644 --- a/demo/demo.css +++ b/demo/demo.css @@ -89,7 +89,6 @@ div.expanded h2:before, div.collapsed h2:before { font-size: 9px; font-family: Monaco, monospace; } -<<<<<<< HEAD div.collapsable { overflow: hidden; @@ -108,18 +107,6 @@ div.collapsed .collapsable { clear: both; height: 0; } -div.expanded .collapsable { -======= -/* Can't seem to get this transition to work :( */ -div.collapsable { ->>>>>>> 11325bbf42fee0d080678ae5a55a8a0eeab70925 - overflow: hidden; - clear: both; - height: 0px; - -moz-transition: height .2s linear; - -webkit-transition: height .2s linear; - transition: height .2s linear; -} div.expanded { cursor: pointer; } diff --git a/index.html b/index.html index 7437a66..d14d23d 100644 --- a/index.html +++ b/index.html @@ -69,18 +69,10 @@ if (this.className === 'collapsed') { this.className = 'expanded'; -<<<<<<< HEAD collapsable.style.height = wrapper.clientHeight + 'px'; } else { this.className = 'collapsed'; collapsable.style.height = '0px'; -======= - var children = this.childNodes; - this.childNodes[3].style.height = 'auto'; - } else { - this.className = 'collapsed'; - this.childNodes[3].style.height = '0px'; ->>>>>>> 11325bbf42fee0d080678ae5a55a8a0eeab70925 } } @@ -300,11 +292,7 @@ document.getElementById("my-gui-container").appendChild( gui.domElement ); -<<<<<<< HEAD