Skip to content

Commit

Permalink
Added little tab animation because why not
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhhelgeson committed Oct 24, 2023
1 parent 3c25de5 commit b3bfd1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/components/SampleLayout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ nav.sourceFileNav li {
display: inline-block;
margin: 0;
padding: 0;
transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav.sourceFileNav li a {
Expand All @@ -31,10 +32,21 @@ nav.sourceFileNav li a {
background-color: #403e3e;
}

nav.sourceFileNav li:hover {
height: 100%;
box-shadow: 0 -10px 0 0 rgb(167, 167, 167);
border-radius: 10px
}

nav.sourceFileNav li a[data-active=true] {
background-color: #282823;
}

nav.sourceFileNav li:has(a[data-active=true]) {
box-shadow: 0 -10px 0 0 rgb(167, 167, 167);
border-radius: 10px;
}

.sourceFileContainer {
overflow: hidden;
height: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/sample/normalMap/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ const NormalMapping: () => JSX.Element = () =>
makeSample({
name: 'Normal Mapping',
description:
"This example demonstrates multiple different methods that employ fragment shaders to achieve additional perceptual depth on a mesh's surface. Demonstrated methods include normal mapping, parallax mapping, and steep parallax mapping.",
'This example demonstrates multiple different methods that employ fragment shaders to achieve additional perceptual depth on the surface of a cube mesh. Demonstrated methods include normal mapping, parallax mapping, and steep parallax mapping.',
gui: true,
init,
sources: [
Expand Down

0 comments on commit b3bfd1f

Please sign in to comment.