Skip to content

Commit

Permalink
added new images
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniegoldstone committed Sep 29, 2023
1 parent b68546a commit 6e0c6b8
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 4 deletions.
32 changes: 28 additions & 4 deletions DevStory3.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ <h1 style="font-size: 1.6em;">Something's NOT Registering!</h1>
<div class="talkbubble">
</div>

<div class="scene3-6"></div>
<div class="scene3-6" id="changethisbg"></div>

<div class="talkbubble">
<div class="cecetalk" style="top: -10%; left:0%"><b>Cece:</b> All researchers need to do is select the correct organ.
</div>
Expand All @@ -230,15 +231,15 @@ <h1 style="font-size: 1.6em;">Something's NOT Registering!</h1>

<div class="scene3-7"></div>
<div class="talkbubble">
<div class="squiggytalk"><b>Squiggy:</b> Look at us, Ce Ce, we're registering tissue!
<div class="squiggytalk"><b>Squiggy:</b> Look at us, CeCe, we're registering tissue!
</div>
</div>
<div class="talkbubble">
<div class="cecetalk3" style="left: 22%;
top: 20%;"><b>Cece:</b> Now this is kind of cool. Watch as we move into the space of the 3D model, we'll see an example of what's known as "collision detection."
</div>
</div>
<div class="talkbubble">
<div class="talkbubble" id="triggerworriedface">
<div class="squiggytalk"><b>Squiggy:</b> Collision!! Ahhh!!! Ce Ce, I knew your crazy adventures would be the end of me! Oh, goodbye cruel world!
</div>
</div>
Expand Down Expand Up @@ -673,8 +674,31 @@ <h1 style="font-size: 1.6em;">Something's NOT Registering!</h1>
delay: 1
})





const timeline = gsap.timeline({
scrollTrigger: {
trigger: "#triggerworriedface",
toggleActions: 'play none none none',
markers: false,
start: "top+=1 top",
id: "scene3-6"
}
});

timeline.to(
".scene3-6",{
backgroundImage: 'url("https://cns-iu.github.io/hra-scrollytelling/img/3-9-2.svg")',
}
);


/* function changebg() {
console.log("what the fuck");
document.getElementsByClassName("scene3-6").style.backgroundImage = "url('img/3-9-2.svg')";
} */


</script>

Expand Down
Loading

0 comments on commit 6e0c6b8

Please sign in to comment.