HIGHLIGHT TEXT ON SCROLL WITH GSAP - Elementor Wordpress Tutorial Flex Container

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025

ความคิดเห็น • 116

  • @andreaegli
    @andreaegli  ปีที่แล้ว +10

    You guys have been asking for an effect like this for some time now...here it is, more or less hope you find it useful!

    • @teuccio73
      @teuccio73 ปีที่แล้ว

      Can I suggest an idea for future tutorials? th-cam.com/video/xEkbMs6BR88/w-d-xo.html

  • @isdsgn
    @isdsgn 8 หลายเดือนก่อน

    I'm Brazilian, and your content is incredible. Thank you very much for sharing your knowledge with us 💙

  • @ricardovaldivia9828
    @ricardovaldivia9828 ปีที่แล้ว

    I´m in love with this chanel. Thank you so much Andrea for your content, is the best of the best.

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Wow, thank you so much, Ricardo and you are very welcome😀

  • @VikramSD-q2o
    @VikramSD-q2o ปีที่แล้ว +5

    Hi Andrea!
    It took just one video for me to hit the subscribe button 🙂Absolutely great stuff.
    I'm not sure if anyone else has this issue... but when i'm trying this tutorial out, the highlight is applied to the whole text box and not individual lines. Could you maybe advise me on what the reasons could be?... and how to work around it.
    Appreciate your help 🙂

  • @teuccio73
    @teuccio73 ปีที่แล้ว

    welcome back Andrea !

  • @MIMMarketing
    @MIMMarketing ปีที่แล้ว

    You are amazing. I really love your tutorials. Thank you

  • @JohnXionidis
    @JohnXionidis ปีที่แล้ว +1

    Well, this looks amazing! 🥰

  • @Wasil.developer
    @Wasil.developer 8 หลายเดือนก่อน

    very professional work

  • @JayVisuallo-b5q
    @JayVisuallo-b5q ปีที่แล้ว +1

    you're a life saver... thank you

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Glad it helped & you're very welcome!😁

  • @ThomasTilahunp
    @ThomasTilahunp 6 หลายเดือนก่อน

    always you are hero b/c always you are my solution🎉❤❤❤❤❤❤❤

  • @kingmam5613
    @kingmam5613 7 หลายเดือนก่อน

    Hey! Andrea, first of all I really love you're contents they are very impressive. I really don't know the issue but I can't change the text color. It's blue but it should be white as the code.

  • @amandakristhina4692
    @amandakristhina4692 ปีที่แล้ว +1

    Meu deus que incrível! Obrigada pelo vídeo!!! 💖

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      You are very welcome, Amanda! ☺️

  • @shazam23
    @shazam23 10 หลายเดือนก่อน +1

    Looks great! Is there a way to do this letter by letter when there is a paragraph? rather than applying the effect on the entire paragraph? That would be great if there's a way to do it!

    • @andreaegli
      @andreaegli  10 หลายเดือนก่อน

      Can be done but you need to write different code. I might do that at some point

  • @sebdemb
    @sebdemb ปีที่แล้ว +1

    Is it posssible to make the animation vertical? Would be great for longer headings

  • @MichaelHansen1
    @MichaelHansen1 11 หลายเดือนก่อน +1

    Great video! Curious, what adjustments can be made to add the scrolling effect to the individual words instead of the paragraph 🤔

    • @andreaegli
      @andreaegli  11 หลายเดือนก่อน +3

      Thank you 😊 a complete different code. It’s in my list to do 😉

    • @MichaelHansen1
      @MichaelHansen1 11 หลายเดือนก่อน

      @@andreaegli Notifications on! ;)

    • @MichaelHansen1
      @MichaelHansen1 11 หลายเดือนก่อน

      @@andreaegli Website where an example can be found, I tried mimicking the CSS, unsuccessful 🙃

  • @ShirBenovich
    @ShirBenovich 5 หลายเดือนก่อน

    Thanks!
    Question: if I want the effect to start from the right (for RTL languages), what should I change?

  • @Aflorarte
    @Aflorarte 4 หลายเดือนก่อน

    Andrea, I love all your videos, so much!!! Unfortunatelly I couldn´t make it with this one. I have tried twice but I couldn´t make it work. Mine is actually NOT WORKING ;) I even tried inserting the class to the headings even when it seemed redundant. But that did not solve the problem. Could you perhaps indicate any possibe reason for this failure. I have Elementor Pro. My best appreciation for your work!

  • @kamessytta
    @kamessytta ปีที่แล้ว +1

    Superrrrrr! 😮👏 👏 👏 👍❤️🥰🥰

  • @Graphix007
    @Graphix007 4 หลายเดือนก่อน

    Thank you very much how can I do this effect on multiple sections?

  • @lehlohonolomokoena2204
    @lehlohonolomokoena2204 ปีที่แล้ว +1

    YES YES YES YES YES 🥰🥰🥰

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Someone’s very excited 😆 thank you!!! 🤓

  • @moog6513
    @moog6513 ปีที่แล้ว +1

    Thank you !!

  • @saulmelo9517
    @saulmelo9517 ปีที่แล้ว +1

    Maravilhoso, eu precisava muito disso!

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      So happy to hear that you like this ☺️

  • @Art-01
    @Art-01 ปีที่แล้ว +1

    Thank u so much🙏🌹

    • @andreaegli
      @andreaegli  ปีที่แล้ว +1

      You’re welcome 😇

  • @SultanaRazia-jx8mk
    @SultanaRazia-jx8mk ปีที่แล้ว +1

    Very nice video ❤❤❤

  • @LeoMonsalve
    @LeoMonsalve 8 หลายเดือนก่อน +1

    Hi Andrea! 👋
    Does this effect only work for a flex -based layout?

    • @andreaegli
      @andreaegli  8 หลายเดือนก่อน +1

      Hey! It should work for any layout 😉

    • @LeoMonsalve
      @LeoMonsalve 8 หลายเดือนก่อน

      @@andreaegli Great! thanks for share it 😉

  • @atulkadyan1303
    @atulkadyan1303 ปีที่แล้ว +2

    hey, can you try to create the following effects which are on the cuberto website?
    1. That magnetic effect upon hovering the menu in the top right corner with cursor change.
    2. When we hover on the carousel cursor changes to drag and we should able to drag it Please make an exact or similar effect to it.
    3. Button hover effect.
    I found the exact channel that was looking for your work is awesome. Thank you

  • @zafit02
    @zafit02 11 หลายเดือนก่อน +1

    Andrea!! this works if your heading is only 1 line, but usually its more common to use headings of 2 or 3 lines, its any way to fix the code and make it work in that case? would love itttttt

    • @andreaegli
      @andreaegli  11 หลายเดือนก่อน +1

      Hey! The code is not broken, that’s how it was intended to work 😉 I will find a solution for your use case, I know that’s more common but until then, this is it

    • @zafit02
      @zafit02 11 หลายเดือนก่อน

      @@andreaegli yes of course it’s not broken ! Didn’t say that. This works perfect for one line but would love when you have more that 1 thanks a lot

    • @andreaegli
      @andreaegli  11 หลายเดือนก่อน +1

      @@zafit02 you said fix the code that’s why I said it’s not broken 😄

    • @zafit02
      @zafit02 11 หลายเดือนก่อน +1

      @@andreaegliOpps sorry my bad

    • @andreaegli
      @andreaegli  11 หลายเดือนก่อน

      @@zafit02 hehe, no worries!

  • @MolecularDev
    @MolecularDev 6 หลายเดือนก่อน +1

    im collecting some of your vids so that I can use them :)

    • @andreaegli
      @andreaegli  6 หลายเดือนก่อน

      Ok, use them for what?

  • @Webrisernl
    @Webrisernl ปีที่แล้ว

    great content thanks for sharing!

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Thanks for watching & thank you!

  • @izhaarmianbscs-1402
    @izhaarmianbscs-1402 7 หลายเดือนก่อน +1

    Level 🔥

  • @yvescrystal2279
    @yvescrystal2279 10 หลายเดือนก่อน

    Hello Andrea, Excellent work thank you for sharing it. It works great on computer but it is not responsive on mobile phone (iphone). Any chance on helping me to fix that?

  • @MDOBAIDULHAQUE-y8j
    @MDOBAIDULHAQUE-y8j 5 หลายเดือนก่อน

    LOVE YOU 🥰MaM

  • @atulkadyan1303
    @atulkadyan1303 ปีที่แล้ว +1

    subscribed coz like you work keep it up

  • @brandedright
    @brandedright 9 หลายเดือนก่อน +1

    Hi Andrea! When I do this, all the heading elements on the page also has the effect (a bit buggy) could there be an update on code or? Just wondering! Thank you, you're the best ~

    • @andreaegli
      @andreaegli  9 หลายเดือนก่อน

      Hey! Are all your headings in the same container where your effect is taking place? From my tests, that's the only way this would happen. Thank you :D

  • @PaulDewseth
    @PaulDewseth ปีที่แล้ว +1

    amazing

  • @mybrandzin
    @mybrandzin ปีที่แล้ว

    Hello Andrea!
    Comment about cursor video
    I appreciate your excellent tutorials, as always. Please keep up the great work! I have a question: How can I add classes so that when I hover over a video, it displays "play," and when I hover over a contact element, it shows "let's talk"?
    Thank you!

  • @sabhifacts2028
    @sabhifacts2028 11 หลายเดือนก่อน

    Does it works on text editor?

  • @nidarahman2305
    @nidarahman2305 ปีที่แล้ว +1

    awesome

  • @AuswideServices-c1g
    @AuswideServices-c1g 5 หลายเดือนก่อน +1

    Hi, the effect does not work on the other section. Can you please let us know the reason?

    • @andreaegli
      @andreaegli  5 หลายเดือนก่อน

      Hey! What other section? Explain exactly how you implemented it because it makes a big difference 😉

  • @ot8508
    @ot8508 ปีที่แล้ว +2

    Why is my elementor saying that custom css is a pro feature?

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      because it is a pro feature but you can add your custom css in the dashboard > appearance > customize > additional css

  • @muktadirrudro7552
    @muktadirrudro7552 ปีที่แล้ว +1

    Great video andrea. Is it possible to add lenis smooth scroll with gsap in elementor

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Thank you 😊 yup, I’m covering that briefly in this video FIXED SCROLL IMAGE GALLERY WITH GSAP & SMOOTH SCROLL (LENIS) - Elementor container edition
      th-cam.com/video/f-avuNMG5as/w-d-xo.html

  • @davidmuller3768
    @davidmuller3768 ปีที่แล้ว +2

    Thanks for the amazing video. Would be great if you could share with me a site where I can find those codes for more effects? Like codepen just for gsap animations

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Hey David, thank you! I wish there was a site like that but to my knowledge, there isn't. I always go on codepen but unless you know how to code a bit, will be hard to implement. The GSAP community on the official website of GSAP has some great solutions too. I do a lot of 'leg' work to find them, test them and implement so that they work with elementor.

  • @hannekeverhoeven9171
    @hannekeverhoeven9171 ปีที่แล้ว

    thank you for this great tutorial. I'm trying to use this script revealing a bodytext. Now everything gets revealed at once. I'm trying to reveal it word for word. Or by character. I know I need to change the javascript, but im not to familiar with it. Tried different things without result. Anybody here any suggestions?

  • @tynegeemajor
    @tynegeemajor 8 หลายเดือนก่อน +1

    can i add this effect for text strokes?

    • @andreaegli
      @andreaegli  8 หลายเดือนก่อน

      Not sure what you mean, do you have an example?

  • @rtydesign
    @rtydesign ปีที่แล้ว

    Thanks for another great video! :) How do we apply the effect only on H2 for example?

  • @gaonadesigner
    @gaonadesigner ปีที่แล้ว +1

    I loved your video!! But, one question... How can I get access to your Notion codes library? Is it paid?

    • @andreaegli
      @andreaegli  ปีที่แล้ว +1

      thank you so much! In the description of every video there's a link to a Notion file, which is free to access (for now::))).

    • @gaonadesigner
      @gaonadesigner ปีที่แล้ว

      @@andreaegli Thank youu!!

  • @jubin9730
    @jubin9730 8 หลายเดือนก่อน +2

    is it possible to use a class except elementor-heading-title

    • @andreaegli
      @andreaegli  8 หลายเดือนก่อน +1

      yes! like this: const textElements = gsap.utils.toArray('.title, h1'); .title - is the class you set and h1 must be the html tag for your heading. if you're using a p, set it to p in the code

    • @jubin9730
      @jubin9730 8 หลายเดือนก่อน +1

      @@andreaegli thanks will try this!

  • @Luzenify
    @Luzenify ปีที่แล้ว

    Hey Andrea-thanks for the awesomeness!! I was looking for this for a long time....
    Just a question: can we apply this effect from top to bottom? Like on a text with more rows...

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Heeeyy!!! You are very welcome🤓 I think you could but I haven't tried that yet.

  • @hossamhoo6552
    @hossamhoo6552 ปีที่แล้ว +1

    Thank you so much for all your videos, It works for me, but my site is RTL language, how to start this effect from right, I tried,,(to left) but didn't work, Thanks

    • @arsalanhosseinifar
      @arsalanhosseinifar 6 หลายเดือนก่อน

      Hi andrea i have a problem same Plz help us😭😭😭😭

  • @varshigamer-uk8ln
    @varshigamer-uk8ln ปีที่แล้ว

    Hello Andrea, can we get this done by using elementor free version? I am not having pro version

  • @launchwithabhi
    @launchwithabhi ปีที่แล้ว +1

    Why multiple headings are not working in same page? and how we can make that line by line, not all together from left to right?

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Because this is the effect I went for. To achieve the effect you’re describing you would need to write different code

  • @wasavikashozal9735
    @wasavikashozal9735 8 หลายเดือนก่อน +1

    Hi Andrea , This code is not working for me , can you please guide, In comment share the detail, let me know how can i share the details of what i applied,

    • @andreaegli
      @andreaegli  8 หลายเดือนก่อน +1

      hey! Could be a number of things why it is not working for you. You can find the effect here, free to download ;) hope it helps

  • @daanvanmiddendorp122
    @daanvanmiddendorp122 ปีที่แล้ว +1

    Why dont you put JavaScript in the elementor custom code section?

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      If the code targets a specific element on a certain page, I prefer to have the code on that said page. I just find it easier to maintain, especially if you add a lot of code snippets to a website. Personal preference I guess...

  • @uixmax
    @uixmax ปีที่แล้ว +1

    If you make one word in one line of text in a different color, then this word does not work according to the script.What to do in this case?

    • @andreaegli
      @andreaegli  ปีที่แล้ว +1

      The script needs to be adjusted accordingly

    • @uixmax
      @uixmax ปีที่แล้ว

      @@andreaegli Thanks for the answer! Can you please tell me what changes need to be made to the script?

    • @uixmax
      @uixmax ปีที่แล้ว

      Please 🙏🏻🙏🏻🙏🏻

  • @bmax1685
    @bmax1685 ปีที่แล้ว

    Hi Andrea text, image reveal css animation on scroll work

  • @VinayJain-k5s
    @VinayJain-k5s ปีที่แล้ว +1

    Need tutorial for cursor design change on different sections

    • @andreaegli
      @andreaegli  ปีที่แล้ว

      Hey! here's one video on the channel that might help: th-cam.com/video/DjP-yyB3gRw/w-d-xo.html

  • @franktielemans6624
    @franktielemans6624 ปีที่แล้ว

    nice, but wouldn't it look even better with some GSAP easing?

  • @iamalifawad
    @iamalifawad ปีที่แล้ว +1

    Your old studio looked great 😐

    • @andreaegli
      @andreaegli  ปีที่แล้ว +1

      Hehe, it's the same studio, I just had to move my desk around😁

  • @sarim88
    @sarim88 7 หลายเดือนก่อน +1

    Hey this was great help. I was able to achieve in wordpress what people are doing on webflow with text split and uncovering each line character by character using a mask which is a bit darker then the text which makes it look like this. its the same effect but animation is different. if anyone wants to know let me know ill share its code.

    • @andreaegli
      @andreaegli  6 หลายเดือนก่อน

      Thank you! Yes, please I think everyone would be very grateful if you shared your solution ;)

    • @sarim88
      @sarim88 6 หลายเดือนก่อน

      @@andreaegli thank you for such good videos. your channel has helped me alot learn about gsap and wordpress.
      so talking about the code i was able to make it work with the elementor heading title but was unable with elementor text editor. so i took the heading icon and wrote the text i wanted with a smaller text size so it seems like a paragraph. The class will be "split-lines" for the heading text.
      You dont need any other html structure other then adding text into elementor heading text. The (.line and .line-mark) html structure have been made within javascript. so nothing else is needed. Just add the html icon and paste this code. you can play around with the css line-mask options for opacity and background color to match your websites background. (((((((YOU MIGHT WANT TO DELETE THE COMMENTS IN THE CODE I HAVE LEFT BEFORE RUNNING IT))))))))
      .line {
      position: relative;
      }
      .line-mask {
      position: absolute;
      top: 0;
      right: 0;
      background-color: #02061D;
      opacity: 0.65;
      height: 100%;
      width: 100%;
      z-index: 2;
      }
      (((((( OVERHERE I HAVE ADDED THE SPLIT-LINES CLASS WITH ELEMENTOR HEADING TITLE CLASS TO APPLY THE EFFECT ON IT)))))))))))))))))
      document.addEventListener("DOMContentLoaded", function() {
      let elementsToSplit = document.querySelectorAll(".split-lines .elementor-heading-title");
      let instancesOfSplit = [];

      // Split the text up
      function runSplit() {
      elementsToSplit.forEach((element, index) => { ((((((SPLITING TEXT HERE)))))))
      instancesOfSplit[index] = new SplitType(element, {
      types: "lines, words"
      });
      });

      document.querySelectorAll(".line").forEach(line => {
      line.insertAdjacentHTML('beforeend', ""); ((((((((LINE-MASK DIV MADE HERE))))))))
      });
      }
      runSplit();
      // Update on window resize
      let windowWidth = window.innerWidth; (((((((TEXT RESIZE ON DIFFERENT SCREEN SIZE))))))
      window.addEventListener("resize", function() {
      if (windowWidth !== window.innerWidth) {
      windowWidth = window.innerWidth;
      elementsToSplit.forEach((element, index) => {
      instancesOfSplit[index].revert();
      });
      runSplit();
      createAnimation();
      }
      });
      gsap.registerPlugin(ScrollTrigger);
      function createAnimation() {
      document.querySelectorAll(".line").forEach(line => { (((((ANIMATION OPTIONS HERE))))))
      let tl = gsap.timeline({
      scrollTrigger: {
      trigger: line,
      start: "top center",
      end: "bottom center",
      scrub: 1
      }
      });
      tl.to(line.querySelector(".line-mask"), {
      width: "0%",
      duration: 1
      });
      });
      }
      createAnimation();
      });

    • @sarim88
      @sarim88 6 หลายเดือนก่อน

      @@andreaegli For some reason my comment with the code isnt showing up anymore, it was posted im sure of that. any other way i can share the code ?

  • @mohamedrazin9900
    @mohamedrazin9900 ปีที่แล้ว +1

    Can we use the same code for the old version of elementor ? I mean you explain it for flex container right .!!
    Please let me know

    • @andreaegli
      @andreaegli  ปีที่แล้ว +1

      Do you mean for sections? I guess, I’m not using the ‘old’ elementor anymore so I have not tested it on it but give it a try and see if it works

    • @mohamedrazin9900
      @mohamedrazin9900 ปีที่แล้ว

      @@andreaegli ok will try

  • @kayquebritoo
    @kayquebritoo ปีที่แล้ว

    this is beautiful girl!

  • @AIprodmagnet
    @AIprodmagnet 7 หลายเดือนก่อน

    amazing