-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b61c5b7
commit 0ee8f65
Showing
12 changed files
with
2,126 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
Lógica - 1Série do Ensino Médio/Vetores e Animação com SVG/assets/js/Cards.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class Cards { | ||
constructor() { | ||
this.posicaoSectionDicas = document.getElementById('section-dicas'); | ||
this.cardEsq = document.querySelector('.card-esq'); | ||
this.cardDir = document.querySelector('.card-dir'); | ||
} | ||
|
||
scrollCards() { | ||
window.requestAnimationFrame(this.calculoScroll.bind(this)); | ||
} | ||
|
||
calculoScroll() { | ||
const posicao = this.posicaoSectionDicas.getBoundingClientRect()['y']; | ||
if (posicao >= 25) { | ||
this.cardEsq.style.transform = `translate(${((-posicao) + 25)/10}%)`; | ||
this.cardDir.style.transform = `translate(${(posicao - 25)/10}%)`; | ||
} | ||
} | ||
} | ||
|
||
export { Cards } |
18 changes: 18 additions & 0 deletions
18
Lógica - 1Série do Ensino Médio/Vetores e Animação com SVG/assets/js/Footer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class Footer { | ||
constructor() { | ||
this.filtroTurbulencia = document.getElementById("filtro-turbulencia") | ||
} | ||
|
||
efeitoOnda() { | ||
TweenMax.to(this.filtroTurbulencia, 20, { | ||
attr: { | ||
baseFrequency: 0.03, | ||
}, | ||
repeat: -1, | ||
yoyo: true | ||
}) | ||
|
||
} | ||
} | ||
|
||
export { Footer } |
11 changes: 11 additions & 0 deletions
11
Lógica - 1Série do Ensino Médio/Vetores e Animação com SVG/assets/js/Icones.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class Icones { | ||
constructor() { | ||
this.listaIcones = document.querySelectorAll('.icone'); | ||
} | ||
|
||
animaIcones() { | ||
TweenMax.to(this.listaIcones, 0.5, {scale: 0.95, repeat: -1, yoyo: true}) | ||
} | ||
} | ||
|
||
export { Icones } |
16 changes: 16 additions & 0 deletions
16
Lógica - 1Série do Ensino Médio/Vetores e Animação com SVG/assets/js/script.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Cards } from './Cards.js' | ||
import { Icones } from './Icones.js' | ||
import { Footer } from './Footer.js' | ||
|
||
window.onload = () => { | ||
|
||
const animaCards = new Cards(); | ||
document.addEventListener('scroll', animaCards.scrollCards.bind(animaCards)); | ||
|
||
const icones = new Icones(); | ||
icones.animaIcones(); | ||
|
||
const footer = new Footer(); | ||
footer.efeitoOnda(); | ||
|
||
} |
90 changes: 90 additions & 0 deletions
90
Lógica - 1Série do Ensino Médio/Vetores e Animação com SVG/assets/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
body { | ||
margin: 0; | ||
background-color: #FFEAD4; | ||
overflow-x: hidden; | ||
} | ||
|
||
.container-header { | ||
width: 100vw; | ||
} | ||
|
||
.lett-header { | ||
position: absolute; | ||
left: 50%; | ||
transform: translate(-50%); | ||
width: 80%; | ||
margin-top: 10%; | ||
fill: transparent; | ||
animation: lett-preenchimento 0.5s ease-in-out forwards 4s; | ||
} | ||
|
||
.lett-header path { | ||
stroke-width: 2px; | ||
stroke: #BE253F; | ||
stroke-dasharray: 3000; | ||
stroke-dashoffset: 3000; | ||
animation: lett-tracado 5s ease-in-out forwards 1s; | ||
} | ||
|
||
h1, h2 { | ||
font-family: 'Pacifico', cursive; | ||
color: #BE253F; | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
font-size: 3em; | ||
} | ||
|
||
h2 { | ||
font-size: 1.5em; | ||
} | ||
|
||
p { | ||
font-family: 'Lato', sans-serif; | ||
color: #484848; | ||
font-size: 1em; | ||
} | ||
|
||
.container-cards { | ||
width: 80%; | ||
margin: auto; | ||
display: flex; | ||
} | ||
|
||
.card { | ||
background-color: white; | ||
border-radius: 10px; | ||
width: 50%; | ||
padding: 20px; | ||
margin: 20px; | ||
} | ||
|
||
.lett-footer { | ||
width: 60%; | ||
fill: #fff; | ||
opacity: 0.7; | ||
position: absolute; | ||
left: 20%; | ||
margin-top: 20%; | ||
} | ||
|
||
.container-footer { | ||
position: relative; | ||
} | ||
|
||
.footer-infos { | ||
text-align: center; | ||
} | ||
|
||
@keyframes lett-preenchimento { | ||
to { | ||
fill: #BE253F; | ||
} | ||
} | ||
|
||
@keyframes lett-tracado { | ||
to { | ||
stroke-dashoffset: 0; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...- 1Série do Ensino Médio/Vetores e Animação com SVG/assets/vectors/coqueiro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...a - 1Série do Ensino Médio/Vetores e Animação com SVG/assets/vectors/filtro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.