Skip to content

Commit

Permalink
Merge pull request #12 from theguy951357/scrollytelling-experiment
Browse files Browse the repository at this point in the history
Scrollytelling experiment
  • Loading branch information
theguy951357 authored Feb 12, 2024
2 parents c79612e + 7134ae8 commit 4cbe818
Show file tree
Hide file tree
Showing 53 changed files with 12,266 additions and 41 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ node_modules/

# dotenv environment variables file
.env

.DS_Store
18 changes: 18 additions & 0 deletions public/css/curtains.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#canvas {
/* make the canvas wrapper fits the document */
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.plane {
/* define the size of your plane */
width: 80%;
height: 80vh;
margin: 10vh auto;
}
.plane img {
/* hide the img element */
display: none;
}
127 changes: 127 additions & 0 deletions public/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
.notifications {
position: fixed;
right: 0;
top: 76px;
z-index: 50;
padding: 0;
margin: 0; }
.notifications li {
max-width: 320px;
display: block;
position: relative;
padding: 6px 10px;
box-shadow: -2px 2px 2px rgb(240, 243, 239), 0px 0px 5px rgba(144, 172, 126, 0.794);
border-top: 1px solid rgba(2, 255, 74, 0.704); }
.notifications li:first-child {
border-top: 0; }

.sidescroll {
overflow-x: scroll;
}

@media screen {


/*** layout ***/

.flex-wrapper {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: flexbox;
display: -moz-flex;
display: -o-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-wrap: wrap;
-ms-flex-wrap: wrap;
-o-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
}

#page-wrap {
width: 100%;
height: 100vh;
overflow: hidden;
}

/*** canvas ***/

#canvas {
height: 100vh;
width: 100vw;

z-index: 10;
}



.multi-textures {
position: absolute;
top: 5%;
right: 5%;
bottom: 5%;
left: 5%;
z-index: 15;

cursor: pointer;
font-size: 3em;
color: white;

justify-content: center;
align-items: center;
align-content: center;

}

.multi-textures img {
display: none;
min-width: 100%;
min-height: 100%;
object-fit: cover;
}

/*** handling errors ***/

.no-curtains .multi-textures {
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}

.no-curtains .multi-textures span {
position: absolute;
top: 50%;
left: 50%;
transform: translate3D(-50%, -50%, 0);
}

.no-curtains.image-1 .multi-textures img:nth-child(3) {
display: block;
}

.no-curtains.image-2 .multi-textures img:nth-child(4) {
display: block;
}

.no-curtains.image-3 .multi-textures img:nth-child(5) {
display: block;
}

.no-curtains.image-4 .multi-textures img:nth-child(6) {
display: block;
}

}


@media screen and (max-width: 1000px) {

.multi-textures {
font-size: 2em;
}

}
34 changes: 33 additions & 1 deletion public/css/w3.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ hr{border:0;border-top:1px solid #eee;margin:20px 0}
.w3-spin{animation:w3-spin 2s infinite linear}@keyframes w3-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}
.w3-animate-fading{animation:fading 10s infinite}@keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}}
.w3-animate-opacity{animation:opac 0.8s}@keyframes opac{from{opacity:0} to{opacity:1}}
.w3-animate-opacity-slow{animation:opac 4s}@keyframes opac{from{opacity:0} to{opacity:1}}
.w3-animate-top{position:relative;animation:animatetop 0.4s}@keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}}
.w3-animate-left{position:relative;animation:animateleft 0.4s}@keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}}
.w3-animate-right{position:relative;animation:animateright 0.4s}@keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}}
.w3-animate-bottom{position:relative;animation:animatebottom 0.4s}@keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0;opacity:1}}
.w3-animate-zoom {animation:animatezoom 0.6s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}
.w3-animate-zoom-slow {animation:animatezoom 3s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}
.w3-animate-input{transition:width 0.4s ease-in-out}.w3-animate-input:focus{width:100%!important}
.w3-opacity,.w3-hover-opacity:hover{opacity:0.60}.w3-opacity-off,.w3-hover-opacity-off:hover{opacity:1}
.w3-opacity-max{opacity:0.25}.w3-opacity-min{opacity:0.75}
Expand Down Expand Up @@ -232,4 +234,34 @@ hr{border:0;border-top:1px solid #eee;margin:20px 0}
.w3-border-light-grey,.w3-hover-border-light-grey:hover,.w3-border-light-gray,.w3-hover-border-light-gray:hover{border-color:#f1f1f1!important}
.w3-border-dark-grey,.w3-hover-border-dark-grey:hover,.w3-border-dark-gray,.w3-hover-border-dark-gray:hover{border-color:#616161!important}
.w3-border-pale-red,.w3-hover-border-pale-red:hover{border-color:#ffe7e7!important}.w3-border-pale-green,.w3-hover-border-pale-green:hover{border-color:#e7ffe7!important}
.w3-border-pale-yellow,.w3-hover-border-pale-yellow:hover{border-color:#ffffcc!important}.w3-border-pale-blue,.w3-hover-border-pale-blue:hover{border-color:#e7ffff!important}
.w3-border-pale-yellow,.w3-hover-border-pale-yellow:hover{border-color:#ffffcc!important}.w3-border-pale-blue,.w3-hover-border-pale-blue:hover{border-color:#e7ffff!important}
.w3-2021-marigold
{color:#fff!important;background-color:#FDAC53!important}
.w3-2021-cerulean
{color:#000!important;background-color:#9BB7D4!important}
.w3-2021-rust
{color:#fff!important;background-color:#B55A30!important}
.w3-2021-illuminating
{color:#000!important;background-color:#F5DF4D!important}
.w3-2021-french-blue
{color:#fff!important;background-color:#0072B5!important}
.w3-2021-green-ash
{color:#000!important;background-color:#A0DAA9!important}
.w3-2021-burnt-coral
{color:#fff!important;background-color:#E9897E!important}
.w3-2021-mint
{color:#fff!important;background-color:#00A170!important}
.w3-2021-amethyst-orchid
{color:#fff!important;background-color:#926AA6!important}
.w3-2021-raspberry-sorbet
{color:#fff!important;background-color:#D2386C!important}
.w3-2021-inkwell
{color:#fff!important;background-color:#363945!important}
.w3-2021-ultimate-gray
{color:#fff!important;background-color:#939597!important}
.w3-2021-buttercream
{color:#000!important;background-color:#EFE1CE!important}
.w3-2021-desert-mist
{color:#000!important;background-color:#E0B589!important}
.w3-2021-willow
{color:#fff!important;background-color:#9A8B4F!important}
Binary file added public/images/displacement.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/video-displacement.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4cbe818

Please sign in to comment.