|
|
Ligne 48 : |
Ligne 48 : |
| 2. création d'un dossier javascript pour réussir à faire glisser les phrases de dialogues. | | 2. création d'un dossier javascript pour réussir à faire glisser les phrases de dialogues. |
| | | |
− | === Code HTML ===
| |
− | ==== Ici on peut voir comment j'ai découpé mon texte====
| |
− | <!DOCTYPE html>
| |
− | <html>
| |
− | <head>
| |
− |
| |
− | <meta charset="utf=8">
| |
− | <title> scroll2 </title>
| |
− | <link rel="stylesheet" href="concerto2.css">
| |
− |
| |
− | <script type="text/javascript" src="concerto22.js"></script>
| |
− |
| |
− | </head>
| |
− | <body>
| |
− |
| |
− | <p>" Stop shaking stupid, stupid. Breathe." </p>
| |
− |
| |
− | <div id="Nothing1">Nothing happened. Think. </div>
| |
− | <div id="Nothing2">Nothing happened. Think. </div>
| |
− | <div id="Nothing3">Nothing happened. Think. </div>
| |
− | <div id="Nothing4">Nothing happened. Think. </div>
| |
− | <div id="Nothing5">Nothing happened. Think. </div>
| |
− | <div id="Nothing6">Nothing happened. Think. </div>
| |
− | <div id="Nothing7">Nothing happened. Think. </div>
| |
− | <div id="Nothing8">Nothing happened. Think. </div>
| |
− |
| |
− | <div id="coffee1">you didn't want to go. "a Coffee" ?
| |
− | you said "OK", polite, polite because he's old, older than you father. A teacher.
| |
− | Rinkles in his faces deep from nose to </div>
| |
− |
| |
− | <div id="coffee2">mouth. Old. A cut over his lip, dried blood.
| |
− | I kept looking at it.</div>
| |
− |
| |
− | <div id="wine1">he wants a glass of </div>
| |
− | <div class="container">
| |
− | <span>red wine</span>
| |
− | <span class="drop"></span>
| |
− | </div>
| |
− |
| |
− | <svg>
| |
− | <defs>
| |
− | <filter id="gooey">
| |
− | <feGaussianBlur in="SourceGraphic" stdDeviation="5" result="blur"/>
| |
− | <feColorMatrix in="blur" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 35 -20" result="gooey" />
| |
− | <feComposite in="SourceGraphic" in2="gooey" operator="atop" />
| |
− | </filter>
| |
− | </defs>
| |
− | </svg>
| |
− |
| |
− | <!--Start Discussion-->
| |
− | <div class="please revealLeft">"a coffee please"</div>
| |
− | <div class="no revealRight">"no wine?"</div>
| |
− | <div class="paper"> I tell him I have to write a paper, he doesn't want to hear. Deaf.</div>
| |
− | <div class="music revealLeft">"One must feel the music reinveted from inside"</div>
| |
− | <div class="breast">He talks to my breast.</div>
| |
− | <div class="geza revealLeft">"Géza Anda, 1969, I'll play it for you at my place."</div>
| |
− | <div class="thank revealRight">"No, thank you, I really have to work." </div>
| |
− | <div class="funny">I laughed then, why did I laugh ? It wasn't funny. He wasn't funny.
| |
− | The waiter gave me a look, remember ?</div>
| |
− |
| |
− | <!--Start Discussion-->
| |
− | <div id="knowing">A knowing superior look</div>
| |
− | <div id="guilty">I felt ashamed, guilty.</div>
| |
− | <div id="Nothing1">Nothing happened. </div>
| |
− | <div id="Nothing2">Nothing happened. </div>
| |
− | <div id="Nothing3">Nothing happened. </div>
| |
− | <div id="Nothing4">Nothing happened. </div>
| |
− | <div id="Nothing5">Nothing happened. </div>
| |
− | <div id="Nothing6">Nothing happened. </div>
| |
− | <div id="Nothing7">Nothing happened. </div>
| |
− | <div id="Nothing8">Nothing happened. </div>
| |
− |
| |
− | <div id="say">That's what people say, don't they ?</div>
| |
− | <div id="anything">"You didn't do anything ? that's what man are like, they do that all the time but it's nothing."</div>
| |
− |
| |
− | <div id="elbows">His elbows on the table, glass in both hands, the thumb. He rubbes it against the glass. Hard, over and over.
| |
− | Does he know he's doing it? He isn't blinking enough. </div>
| |
− |
| |
− | <div id="stares1">Stares. Rubbes. Talks and talks.</div>
| |
− | <div id="stares1">Stares. Rubbes. Talks and talks.</div>
| |
− | <div id="stares1">Stares. Rubbes. Talks and talks.</div>
| |
− | <div id="stares1">Stares. Rubbes. Talks and talks.</div>
| |
− |
| |
− |
| |
− | <div id="anda">The Geza Anda recording at his place. He uses the word "sublime". I hate that word. Especially for music.
| |
− | I hate it but I laugh. </div>
| |
− | <div id="why">why?</div>
| |
− |
| |
− | <div id="unreel">Laughing makes it unreel. It's not happening. </div>
| |
− | <div id="place">He talks about going to his place again.</div>
| |
− | <div class ="please revealLeft">"No, thank you, I can't."</div>
| |
− | <div id="change">His expression changes. His face looks just like the waiter, superior.
| |
− | As if he really knows me, knows what I want, he knows. I don't.</div>
| |
− | <div id="metro">He walks me to the metro, he pushes again</div>
| |
− | <div class="no revealRight">"Are you sure?"</div>
| |
− | <div id="sad">A sad smile. As if I've let him down. </div>
| |
− | <div id="wrong">as if I've wronged him. </div>
| |
− | <div class="please revealLeft">"Goodbye"</div>
| |
− | <div id="voice">Not my voice</div>
| |
− | <div id="high">high</div>
| |
− | <div id="horsed">horsed</div>
| |
− | <div id="scared">scared</div>
| |
− | <div id="run">I run</div>
| |
− | <div id="run">I run</div>
| |
− | <div id="run">I run</div>
| |
− | <div id="run">I run</div>
| |
− | <div id="run">I run</div>
| |
− | <div id="run">I run</div>
| |
− | <div id="run">I run</div>
| |
− | <div id="cry"> Nothing happened and I feel like crying.</div>
| |
− |
| |
− | <div id="make">They say it's nothing to make me nothing.</div>
| |
− | <div id="sth">it's something</div>
| |
− | <div id="liars">They're liars.</div>
| |
− |
| |
− |
| |
− | </body>
| |
| | | |
| === code JavaScript=== | | === code JavaScript=== |
exercice de fin de quadrimestre 2021
texte choisi
retranscription de l'audio de la vidéo "concerto" Arte dans la série H24
" Stop shaking stupid, stupid. Breathe."
Nothing happened. Think. you didn't want to go. "a Coffee" ?
you said "OK", polite, polite because he's old, older than you father. A teacher.
Rinkles in his faces deep from nose to mouth. Old. A cut over his lip, dried blood.
I kept looking at it.
he wants a glass of red wine, "a coffee please", "no wine?"
I tell him I have to write a paper, he doesn't want to hear. Deaf.
"One must feel the music reinveted from inside". He talks to my breast.
"Géza Anda, 1969, I'll play it for you at my place." "No, thank you, I really have to work."
I laughed then, why did I laugh ? It wasn't funny. He wasn't funny.
The waiter gave me a look, remember ? A knowing superior look. I felt ashamed, guilty.
Nothing happened. That's what people say, don't they ?
"You didn't do anything ? that's what man are like, they do that all the time but it's nothing."
His elbows on the table, glass in both hands, the thumb. He rubbes it against the glass. Hard, over and over.
Does he know he's doing it? He isn't blinking enough.
Stares. Rubbes. Talks and Talks.
The Géza Anda recording at his place. He uses the word "sublime". I hate that word. Especially for music.
I hate it but I laugh.
Why ?
Laughing makes it unreel. It's not happening.
He talks about going to his place again. "No, thank you, I can't."
His expression changes. His face looks just like the waiter, superior.
As if he really knows me, knows what I want, he knows. I don't.
He walks me to the metro, he pushes again, "Are you sure?". A sad smile. As if I've let him down.
As if I've wronged him.
"Goodbye"
Not my voice, high, horsed, scared, I run.
I run.
Nothing happened and I feel like crying.
They say it's nothing to make me nothing.
It's something.
They're liars.
Étapes
Le but est d'adapter la mise en page et le mouvement de certains passages du texte pour renforcer ce qui est écrit.
Je voulais simplement jouer avec des manipulations sur le texte (le rendre flou, tremblant, ou apparaissant comme un message pour renforcer le caractère du dialogue).
1. découper le texte en plusieurs parties au fur et a mesure de la construction de la page css en fonction des mots et des phrases sur lesquels je veux mettre des effets.
2. création d'un dossier javascript pour réussir à faire glisser les phrases de dialogues.
code JavaScript
Utilisé pour faire glisser les dialogues dans la page
function revealLeft() {
var reveals = document.querySelectorAll(".revealLeft");
for (var i = 0; i < reveals.length; i++) {
var windowHeight = window.innerHeight;
var elementTop = reveals[i].getBoundingClientRect().top;
var elementVisible = 150;
if (elementTop < windowHeight - elementVisible) {
reveals[i].classList.add("active");
} else {
reveals[i].classList.remove("active");
}
}
}
function revealRight() {
var reveals = document.querySelectorAll(".revealRight");
for (var i = 0; i < reveals.length; i++) {
var windowHeight = window.innerHeight;
var elementTop = reveals[i].getBoundingClientRect().top;
var elementVisible = 150;
if (elementTop < windowHeight - elementVisible) {
reveals[i].classList.add("active");
} else {
reveals[i].classList.remove("active");
}
}
}
window.addEventListener("scroll", revealLeft);
window.addEventListener("scroll", revealRight);
exercice scroll
Déformer une image en scrollant, la faire se décomposer
1. Découper l'image en plusieurs parties
2. les placer de la manière que je veux dans ma page de code
lien vers la page
file:///Users/christineopdebeeck/Documents/CAMILLE/DESIGN%20NUM/exercice2-scroll/essai%231.html