diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..770f84c322 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -58,7 +58,31 @@ diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 2712384201..fa48534e39 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -61,13 +61,14 @@ background:black; position: absolute; top:50%; + transform-origin: 100%; + transform: rotate(90deg); + transition: all 0.5s + transition-timing-function: cubic-bezier(1, 2.99, 0.58, 1); } - diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 7171607a8b..1fe80dd743 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -27,7 +27,9 @@

Update CSS Variables with JS

*/ body { - text-align: center; + display: flex; + justify-content: center; + flex-wrap: wrap; } body { @@ -45,9 +47,35 @@

Update CSS Variables with JS

input { width:100px; } + + :root { + --base: #ffc600; + --blur: 10px; + --padding: 10px; + } + + img { + background: var(--base); + filter: blur(var(--blur)); + padding: var(--spacing); + } + + .hl { + color: var(--base); + } diff --git a/05 - Flex Panel Gallery/index-START.html b/05 - Flex Panel Gallery/index-START.html index e1d643ad5c..3819fd4112 100644 --- a/05 - Flex Panel Gallery/index-START.html +++ b/05 - Flex Panel Gallery/index-START.html @@ -17,16 +17,22 @@ body { margin: 0; } + *, *:before, *:after { box-sizing: inherit; } .panels { + display: flex; + flex-direction: row; min-height:100vh; overflow: hidden; } .panel { + display: flex; + flex-direction: column; + flex: 1; background:#6B0F9C; box-shadow:inset 0 0 0 5px rgba(255,255,255,0.1); color:white; @@ -54,8 +60,17 @@ margin:0; width: 100%; transition:transform 0.5s; + display: flex; + flex: 1 0 auto; + justify-content: center; + align-items: center; } + .panel > *:first-child { transform: translateY(-100%) } + .panel.open-active > *:first-child { transform: translateY(0%) } + .panel > *:last-child { transform: translateY(100%) } + .panel.open-active > *:last-child { transform: translateY(0%) } + .panel p { text-transform: uppercase; font-family: 'Amatic SC', cursive; @@ -67,6 +82,7 @@ } .panel.open { + flex: 5; font-size:40px; } @@ -107,6 +123,20 @@