GSAP BLUR TEXT REVEAL ON SCROLL - Elementor Wordpress Tutorial Flex Container

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 19

  • @nk-WebWander
    @nk-WebWander 2 місяці тому +1

    Andrea, your work is pure magic! The effect you created is beyond praise. You have mastered Elementor and GSAP so skillfully, and I can't wait to see what you create next. Thank you so much!

  • @abdurrehmanbutt8920
    @abdurrehmanbutt8920 2 місяці тому

    I always love your tutorials, you teaching style is very awesome.

  • @Jaljeerabgmi
    @Jaljeerabgmi 2 місяці тому

    Love your tutorials ! learned most of things from your videos !

  • @rahadianputra3745
    @rahadianputra3745 2 місяці тому +1

    Wow! this is so cool, thanks teacher Andrea

    • @andreaegli
      @andreaegli  2 місяці тому

      Thanks and you’re welcome! ☺️

  • @Ammar_J
    @Ammar_J 2 місяці тому

    Awesome Video!
    I've started using Arc Browser after watching your video, and I am still figuring out how it can create a more productive environment for me as a designer. Could you please make a detailed video on how to use Arc, how to create the best environment as a designer, and recommend some extensions you use as a designer!
    Thank You!

  • @erhamotionvideo7517
    @erhamotionvideo7517 2 місяці тому

    thank you, this is the kind of GSAP I like

  • @sameerpatelxyz
    @sameerpatelxyz 2 місяці тому +1

    🤩 amazing

  • @justwpbasic
    @justwpbasic 25 днів тому +1

    Works well but the word breaks and it doesn't split to the next line

  • @serdimay7
    @serdimay7 2 місяці тому

    Awesome. I'm wondering why you added the HTML code in the 4th container? Does the location matter? Can it be placed in the same container as the text heading?

  • @andreebel3394
    @andreebel3394 2 місяці тому

    Hey Andrea. The effect itself works well, but the words are simply cut off when there is a line break. Can you change this or code it so that the words stay together. You can also see it in your tutorial with the word 'quantum' which is cut off.

  • @Zi0nneBLoeM
    @Zi0nneBLoeM 9 днів тому +1

    Do you know by any chance if this is also possible for custom classes / headings? Because to use this on every H2, or H1 is a bit overkill for me! :) Great vid again.

    • @andreaegli
      @andreaegli  9 днів тому

      Yes BUT you will need to re=style the spans created dynamically. I've added the class of heading here but if you leave it like that, you will notice that your text is no longer styled.
      span {
      font-size: 3rem;
      ......
      .....
      whatever else you want to add
      }
      might affect other spans you have on the page tho...this is just a quick example, needs adjustment on a full blown site
      document.addEventListener('DOMContentLoaded', function () {
      gsap.registerPlugin(ScrollTrigger);
      // Function to split text into spans
      function splitTextIntoSpans(selector) {
      const elements = document.querySelectorAll(selector);
      elements.forEach(element => {
      const text = element.innerText;
      element.innerHTML = ""; // Clear existing content
      text.split("").forEach(char => {
      const span = document.createElement("span");
      span.style.display = "inline-block";
      span.style.opacity = "0";
      span.style.filter = "blur(8px)";
      span.style.transform = "translateX(-100px)";
      span.innerText = char === " " ? "\u00A0" : char; // Non-breaking space for spaces
      element.appendChild(span);
      });
      });
      }
      splitTextIntoSpans(".heading");
      document.querySelectorAll(".heading").forEach(heading => {
      gsap.fromTo(heading.querySelectorAll("span"), {
      x: '-100%',
      filter: 'blur(8px)',
      opacity: 0,
      }, {
      x: '0%',
      filter: 'blur(0)',
      opacity: 1,
      duration: 1.5,
      ease: "power4.out",
      stagger: 0.05,
      scrollTrigger: {
      trigger: heading,
      start: "top 90%", // Adjust if necessary
      end: "top 20%", // Ensures animation completes
      toggleActions: "restart none none reset",
      scrub: 1,
      markers: false
      },
      });
      });
      });

    • @Zi0nneBLoeM
      @Zi0nneBLoeM 9 днів тому +1

      @@andreaegli Yes, so if I understand correctly, I have to CSS style a specific class (span in this case) to maintain the styling of the heading before?

    • @andreaegli
      @andreaegli  9 днів тому

      @@Zi0nneBLoeM correct!

    • @Zi0nneBLoeM
      @Zi0nneBLoeM 9 днів тому

      @@andreaegli Thanks for the quick responding, I'll try it out :)

  • @nafiulhasanmehediL
    @nafiulhasanmehediL 2 місяці тому +1

    Where i found this code?

  • @Jaljeerabgmi
    @Jaljeerabgmi 2 місяці тому

    Hii there, i want a tutorial on something related to website i have a question can we make similar ? Please let me know how can i send it !