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

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

КОМЕНТАРІ • 19

  • @nk-WebWander
    @nk-WebWander 3 місяці тому +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!

  • @andreebel3394
    @andreebel3394 3 місяці тому +1

    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.

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

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

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

    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!

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

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

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

    Wow! this is so cool, thanks teacher Andrea

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

      Thanks and you’re welcome! ☺️

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

    thank you, this is the kind of GSAP I like

  • @Zi0nneBLoeM
    @Zi0nneBLoeM Місяць тому +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  Місяць тому

      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 Місяць тому +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  Місяць тому

      @@Zi0nneBLoeM correct!

    • @Zi0nneBLoeM
      @Zi0nneBLoeM Місяць тому

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

  • @DMLeBeau
    @DMLeBeau 3 місяці тому

    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?

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

    🤩 amazing

  • @justwpbasic
    @justwpbasic Місяць тому +1

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

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

    Where i found this code?

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

    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 !