Skip to content
Snippets Groups Projects
Commit 817a74c1 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

put problem in time out

parent 8c9b2ede
No related branches found
No related tags found
No related merge requests found
Pipeline #387977 passed
This diff is collapsed.
import { H2 } from "../components/headings"; import { H2 } from "../components/headings";
import { Circle } from "../components/Shapes"; import { Circle } from "../components/Shapes";
import "../utils/text.js"; /* import "../utils/text.js"; */
export function Description() { export function Description() {
...@@ -25,7 +25,7 @@ export function Description() { ...@@ -25,7 +25,7 @@ export function Description() {
</div> </div>
<div className="col-2 "> <div className="col-2 ">
<Circle text="1:3000 newborns worldwide"/> <Circle text="1:3000 newborns worldwide"/>
<Circle text="x:y newborns in Germany"/> <Circle text="x:y newborns in Germany"/>
<Circle text="kosten"/> <Circle text="kosten"/>
</div> </div>
......
import { gsap } from "gsap/dist/gsap"; import { gsap } from "gsap";
import ScrollTrigger from "gsap/dist/ScrollTrigger"; import ScrollTrigger from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger); gsap.registerPlugin(ScrollTrigger);
// REVEAL // // REVEAL //
gsap.utils.toArray(".revealUp").forEach(function (elem) {
gsap.utils.toArray(st).forEach(function (elem) {
ScrollTrigger.create({ ScrollTrigger.create({
trigger: elem, trigger: elem,
start: "top 80%", start: "top 80%",
...@@ -44,4 +46,3 @@ gsap.utils.toArray(".revealUp").forEach(function (elem) { ...@@ -44,4 +46,3 @@ gsap.utils.toArray(".revealUp").forEach(function (elem) {
} }
}); });
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment