From b2c93de16f800b37b96e1dac00d7c3f3abe8232c Mon Sep 17 00:00:00 2001 From: ktyl Date: Wed, 22 Dec 2021 03:53:53 +0000 Subject: [PATCH] add gallery hover info+anim --- src/inc_css/gallery.css | 117 +++++++++++++++++---- src/inc_css/sidebar.css | 3 +- src/inc_css/socials.css | 2 + src/inc_css/title.css | 5 +- src/root/colors.css | 2 +- src/root/gallery.html | 226 +++++++++++++++++++++++++++++++++------- src/root/styles.css | 8 +- 7 files changed, 300 insertions(+), 63 deletions(-) diff --git a/src/inc_css/gallery.css b/src/inc_css/gallery.css index a6fd201..985b0a9 100644 --- a/src/inc_css/gallery.css +++ b/src/inc_css/gallery.css @@ -1,20 +1,12 @@ -.demoTile { - /*opacity: 0.7;*/ +.tileCover { + width: 100%; + height: 100%; + opacity: 0.0; transition: opacity 0.3s; - max-width: 15vw; - display: inline; } -.demoTile:hover { - /*opacity: 1.0;*/ -} - -.demoTiles { - position: absolute; - background-color:white; - /*left:27.5%;*/ - top: var(--title-height); - margin-top:40px; +.tileCover:hover { + opacity: 1.0; } .page.portfolio { @@ -30,12 +22,28 @@ .portfolio h1 { margin-top: 1.2em; text-align: center; + + padding: 0.2em 0.4em; } .portfolio p { - background-color: var(--clear); - border-style: none; + margin: 1.2em 0 2em; + text-align: center; + border-style: none; + + background-color: var(--clear); +} + +.glass { + padding: 0.4em 0.6em; + color: var(--foreground-inactive); + background-color: var(--background); + opacity:0.9; + + border-style:solid; + border-radius:2em; + border-color:var(--clear); } /* gallery img */ @@ -43,15 +51,86 @@ margin-top: 1em; width: 100%; height: 100%; - background-color: transparent; display: grid; grid-template-columns: 1fr 1fr 1fr; } +.wrapper .imgHolder { + position: relative; + width: 100%; + height: 100%; +} + .wrapper img { + pointer-events: none; + box-sizing: border-box; width: 100%; height: 100%; object-fit: cover; - transition: transform 0.1s ease-in; + left: auto; + right: auto; + + transition: all 0.2s ease-out; } -.wrapper img:hover { + +.wrapper .imgHolder span { + position:absolute; + top:50%; + left:1em; + right:1em; + + transform: translateY(-50%) scale(0.6); + text-align: center; + + opacity: 0; + transition: all 0.3s; + + color: var(--accent); +} + +.wrapper .imgHolder span p { + padding:0; + margin:0; + opacity: 1; + color: var(--background); +} + +.wrapper .imgHolder span a { + opacity: 1; + padding: .5em 0; + color: var(--background); + transition: all 0.1s; + text-decoration: none; +} +.wrapper .imgHolder span a:hover { + color: var(--accent); +} + +.wrapper .imgHolder span i { + padding: 0 0.1em; + margin-top: .3em; + font-size: 2em; + color: var(--background); + transition: all 0.3s; +} +.wrapper .imgHolder span i:hover { + transform:translateY(-10%); + color:var(--accent); +} + +.wrapper .imgHolder:hover span { + transform: translateY(-50%); + opacity:1; +} + +.lightTileText { + color: var(--background); +} + +.wrapper .imgHolder:hover img { + border-style: solid; + border-width: 0; + border-radius: 100%; + border-color: var(--foreground); + + filter: saturate(20) brightness(.5) blur(2px); } diff --git a/src/inc_css/sidebar.css b/src/inc_css/sidebar.css index 028a82f..25fdc13 100644 --- a/src/inc_css/sidebar.css +++ b/src/inc_css/sidebar.css @@ -45,8 +45,7 @@ } .sidebar li a:hover { - color: var(--foreground); - background-color: var(--foreground-alt); + color: var(--accent); } diff --git a/src/inc_css/socials.css b/src/inc_css/socials.css index 24cebe4..110109a 100644 --- a/src/inc_css/socials.css +++ b/src/inc_css/socials.css @@ -8,10 +8,12 @@ .socials i { font-size: 2em; + padding-right: .05em; color: var(--foreground-inactive); transition: transform 0.3s, color 0.3s; } .socials i:hover { + color: var(--accent); transform: translateY(-10%); } diff --git a/src/inc_css/title.css b/src/inc_css/title.css index be4bdb5..f16b490 100644 --- a/src/inc_css/title.css +++ b/src/inc_css/title.css @@ -3,10 +3,11 @@ } .title a { - transition: color 0.3s; + transition: all 0.1s ease-in; color: var(--foreground-active); } .title a:hover { - color: lightpink; + color: var(--accent); + transform: translateY(50%); } diff --git a/src/root/colors.css b/src/root/colors.css index c2c9d92..681a96d 100644 --- a/src/root/colors.css +++ b/src/root/colors.css @@ -4,7 +4,7 @@ --background-alt: #b8b8b8; --foreground: #444; --foreground-inactive: #777; - --accent: lightpink; + --accent: #ff369a; --clear: rgba(0,0,0,0); /* Colors */ diff --git a/src/root/gallery.html b/src/root/gallery.html index fdee86a..cf842b5 100644 --- a/src/root/gallery.html +++ b/src/root/gallery.html @@ -14,43 +14,199 @@
-

ray tracing

-

optics are beautiful, fascinating and fun to code

-
- - - - - - - - - -
-

games

-

a credit in each, but not each my own

-
- - - - - - - - - -
+

ray tracing

+

optics are beautiful, fascinating and fun to code

+
+ +
+ + +

+relativity +

+

+ +

+
+
+ +
+ + +

+relativity +

+

+ +

+
+ +
+
+ + +

+relativity +

+

+ +

+
+
+ +
+ + +

ring

+
+
+ +
+ + +

orbits

+
+
+ +
+ + +

orbits

+
+
+ +
+ + +

+open +

+

+ +

+
+
+ +
+ + +

weekend

+

+ + +

+
+
+ +
+ +

games

+

a credit in each, but not each my own

+ +
+ +
+ + +

ecollapse 2030

+

+ +

+
+
+ +
+ + +

squingle

+

+ + +

+
+
+ +
+ + +

revival

+
+
+ +
+ + +

lsd

+

+ + +

+
+
+ +
+ + +

stopnt

+

+ + +

+
+
+ +
+ + +

earth

+
+
+ +
+ + +

gitch

+

+ +

+
+
+ +
+ + +

membrain

+

+ + +

+
+
+ +
+ + +

make yourself at home

+

+ +

+
+
+ +
+ +

abstract

+

sometimes it just happens

+ +
+ + + + + +
-

abstract

-

sometimes it just happens

-
- - - - - -
#include planets.html diff --git a/src/root/styles.css b/src/root/styles.css index 3eb1654..7942c93 100644 --- a/src/root/styles.css +++ b/src/root/styles.css @@ -1,4 +1,4 @@ -@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400&display=swap'); @import 'colors.css'; :root { @@ -64,7 +64,7 @@ a.fsText:hover { width: max(30vmax,500px); left:50%; top:0; - margin-top: 1em; + /*margin-top: 1em;*/ padding: 0px 0 50px; padding-top: 5vh; /*background-color: var(--foreground-inactive);*/ @@ -79,6 +79,7 @@ a.fsText:hover { color: var(--foreground); font-size: 1.1em; + /*font-weight: bold;*/ line-height: 1.25em; @@ -94,8 +95,7 @@ a.fsText:hover { .page h1 { color: var(--foreground-inactive); - font-size: 1.5em; - font-weight: bold; + font-size: 1.7em; margin: .5em; }