GSAP CURSOR CHANGE ON HOVER - Elementor Wordpress Tutorial Flex Container

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024

Комментарии • 91

  • @billycool9961
    @billycool9961 24 дня назад

    Hello Andrea and everyone. I was scratching my head because the code didnt seem to work for me. Turns out on your "custom cursor html" part that you have in the description there is no
    and in the start and end of the code. If you add that it works perfectly. You can also see it if you pause on 5:16 Awesome work once again!

  • @andreaegli
    @andreaegli  Год назад +2

    We're building a trendy feature/effect and that is a GSAP cursor change on hover! Woohoo!

    • @aptvkey9495
      @aptvkey9495 Год назад +3

      I love your videos Andrea. Thank you so much for sharing your knowledge! would be really nice if you could teach us how to make and horizontal movement on scroll. 🙏

    • @andreaegli
      @andreaegli  Год назад +2

      @@aptvkey9495 That's a great idea, I will add it to my list

  • @christos_thanas
    @christos_thanas 9 месяцев назад +2

    If you want to ensure that the text does not interfere with the hover events of the images, you can use the CSS property "pointer-events: none; "on the text element. This will make the text non-interactive, allowing the hover events to pass through to the underlying images.

  • @erhamotionvideo7517
    @erhamotionvideo7517 Год назад +3

    i really like this channel 😍

    • @andreaegli
      @andreaegli  Год назад

      You think or you know?😁 Thank you so much for your kind words!

  • @azombi52
    @azombi52 Год назад +2

    Hey Andrea, thank you for this awesome tutorial it really helped me on my project🤩

    • @andreaegli
      @andreaegli  Год назад

      Hey! So happy to hear that! 🤓

  • @matanzagag
    @matanzagag 5 месяцев назад +1

    thank you so much for this video! is there a way to disable the regular pointer?

  • @user-sq2fe1jn4e
    @user-sq2fe1jn4e Год назад +1

    Ma,am Your project are Awesome 😘 And Your all video's are out of the Box {Love You}

  • @thewebstylist
    @thewebstylist Год назад +1

    Def trying this out, SO cool
    awesome vid! 🎉

    • @andreaegli
      @andreaegli  Год назад

      I just read your email, I will reply to you there..

  • @mariazottler6273
    @mariazottler6273 14 дней назад

    Hello Andrea! Great work, you helped me a lot with it!!!! How would you solve it, that the cursor gets different color on each picture? For example on one picture magenta, on the other picture cyan?

  • @mybrandzin
    @mybrandzin Год назад +2

    Hello Andrea!
    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!

  • @juandylan4052
    @juandylan4052 Год назад +1

    You're great, and your videos outstanding, thank you for sharing.

    • @andreaegli
      @andreaegli  Год назад +1

      Aww, thank you, Juan for the lovely words!😃

  • @AllenLu
    @AllenLu Год назад +1

    let's go gsappp

    • @andreaegli
      @andreaegli  Год назад

      GSAP is life!!! Kidding but it makes boring stuff cool 😎

  • @jean-mahmoud_du_tacobel
    @jean-mahmoud_du_tacobel Год назад +1

    Good job Andrea 🎉

    • @andreaegli
      @andreaegli  Год назад +1

      As always, thank you Jean!🤩

    • @jean-mahmoud_du_tacobel
      @jean-mahmoud_du_tacobel Год назад

      @@andreaegli De rien Andrea. Je sème juste des pétales de rose sur ton chemin de la réussite 🙌

  • @matiasleandrobalbi7147
    @matiasleandrobalbi7147 Год назад +1

    Hello Andrea, the truth is your videos are incredible and one always learns things and appreciates your time to make them, now comes the question, can you do the same but with the containers?

    • @andreaegli
      @andreaegli  Год назад +1

      Hey Matias! Thank you so much!!!! Hmm, not sure I understand, the images are in containers. I only use containers in my videos. Either way, the effect works on anything as long as you add the class on the element. Let me know if you need more help!🤓

  • @johanstam3602
    @johanstam3602 20 дней назад

    Hi, there should be a way to click (the cursor big) and get redirected to an other page or smooth scrolling to a section. Can't get this to be linked. Is there a solution?

  • @chinmaygambhirrao9774
    @chinmaygambhirrao9774 3 месяца назад +1

    Thanks for this amazing tutorial but one question is what if i want to add the functionality like when user clicks on particular image the image should get enlarge. Appreciate your help

    • @andreaegli
      @andreaegli  3 месяца назад

      You're welcome! You need to write additional code for that ;)

  • @chubbec
    @chubbec 24 дня назад

    Hey, great tutorial! Do you have any idea how to solve this browser error? - "ReferenceError: mouseleaveHandler is not defined at"

  • @Seemenowhere
    @Seemenowhere Год назад

    Hiii Andrea, I saw on your video there's also a .cursor-play and I really want that too. Whenever I added the same code If (target.... - the cursor became laggy ;( maybe something wrong but without cursor-play, it works just fine :)
    Here is the code I added:
    function mousemoveHandler(e) {
    const target = e.target;
    const tl = gsap.timeline({
    defaults: {
    x: e.clientX,
    y: e.clientY,
    ease: "power2.out"
    }
    });
    if (target.closest(".video-play")) {
    tl.to(cursorSmall, { opacity: 0 })
    .to(cursorPlay, { opacity: 1 }, '-=0.5');
    } else {
    if (target.classList.contains("video-play")) {
    scale = 4;
    } else {
    scale = 1;
    }
    tl.to(cursorSmall, { opacity: 1, scale: scale })
    .to(cursorPlay, { opacity: 0}, "-=0.5");
    }
    if (target.closest(".your-class")) {
    tl.to(cursorSmall, { opacity: 0 })
    .to(cursorBig, { opacity: 1 }, "-=0.5");
    } else {
    if (target.classList.contains("your-class")) {
    scale = 4;
    } else {
    scale = 1;
    }
    tl.to(cursorSmall, { opacity: 1, scale: scale })
    .to(cursorBig, { opacity: 0}, "-=0.5");
    }
    function mouseleaveHandler() {
    gsap.to(cursorSmall, { opacity: 0 });
    }}

  • @shazam23
    @shazam23 4 месяца назад +1

    Great content! What is the keyboard shortcut for commenting and uncommenting code?

    • @andreaegli
      @andreaegli  4 месяца назад

      Thank you! command + / (on Mac)

  • @grimreefer533
    @grimreefer533 5 месяцев назад +1

    Hi Andrea! Thank you for the great content 🙂is it possible to display two different types of cursor changes? For example, cursor type one would display as per your video with "view" text to indicate a click through on a element. Then cursor type two would have an icon instead off text to indicate for example a side scroll on a different element?

    • @andreaegli
      @andreaegli  5 месяцев назад +1

      Hey! Yes but you need to write some additional code 😉

  • @Heph376
    @Heph376 Год назад +2

    Hey, I love your tutorials!
    I think you have uploaded the wrong code in the description, or am I mistaken? :)

    • @andreaegli
      @andreaegli  Год назад +1

      Hey, thank you 🤓
      Yup, FIXD NOW! Thank you for letting me know

    • @Heph376
      @Heph376 Год назад +1

      @@andreaegli It's redirecting me to a "you do not have access" page :s

    • @andreaegli
      @andreaegli  Год назад +1

      @@Heph376 How about now?

    • @Heph376
      @Heph376 Год назад +1

      @@andreaegli Yesss, it works now!
      Thanks, you're the best!

    • @andreaegli
      @andreaegli  Год назад +1

      @@Heph376 YESS!!

  • @user-ll8rw6zg6s
    @user-ll8rw6zg6s 4 месяца назад

    awesome

  • @baptistedebels8987
    @baptistedebels8987 Год назад +1

    I don't know if I did something wrong but it really doesn't work on my side :/
    Just have to follow the tuto or should I add gsap library before on my website ?

    • @andreaegli
      @andreaegli  Год назад +1

      Hmm, did you add the whole code from the notion file and added the class on the elements you want the cursor to change on hover?

    • @baptistedebels8987
      @baptistedebels8987 Год назад

      @@andreaegli yes of course !

    • @andreaegli
      @andreaegli  Год назад

      @@baptistedebels8987 ok, send me screenshots of your code so we can pinpoint the issue

  • @aquibjaved4084
    @aquibjaved4084 9 месяцев назад

    I have already added the URL and it is functional. However, I'm unsure of how to add a dynamic URL for each project that appears on hover. ??

  • @teuccio73
    @teuccio73 Год назад

    another pearl !

  • @dileepbatchala1590
    @dileepbatchala1590 6 месяцев назад +1

    Hi, i followed what you done, but it is not working. Even the custom cursor is also not showing.

    • @andreaegli
      @andreaegli  6 месяцев назад

      Revisit all the steps. I've had someone else tell me the same thing only for them to have forgotten something... ex like a class in the right place. If you forget just one thing, nothing works. Without seeing your implementation I cannot help but with this advice ;)

  • @tannerhodgkinson8385
    @tannerhodgkinson8385 5 месяцев назад

    is there a way to not show it on mobile devices? I deleted the code you had in the css portion but it's still showing on mobil.

  • @gastonhenrich2492
    @gastonhenrich2492 Год назад +1

    Hi andrea! great tutorial as always keep it up like this !, one question, when writting the code in elementor especially the html part you are targeting "HTML" and "P", isnt that a little bit risky? will that change all the P i have on my websites? thanks in advance!

    • @andreaegli
      @andreaegli  Год назад

      Hey Gaston! Nope, it will not affect your other tags on the page but if you want peace of mind, you can add an id to the p tag ex:
      View project
      #hello {
      margin-top: 10px;
      }
      Hope this helps 😉

  • @cherifidristerfous4837
    @cherifidristerfous4837 Год назад +1

    Thank you for this great tutorial ! I tested it out and it works perfectly. However the cursor goes under the popups and is not visible (I gave the cursor a z-index of 999), is there a solution to that ? Thank you !

    • @andreaegli
      @andreaegli  Год назад +1

      You are very welcome! So happy to hear that ;) Ok, change it to z-index:2147483647 and don't forget to add the class on the popup ;) lemme know if it worked (it worked during my test)

    • @cherifidristerfous4837
      @cherifidristerfous4837 Год назад

      @@andreaegli It worked ! Thanks for the help !

    • @andreaegli
      @andreaegli  Год назад +1

      @@cherifidristerfous4837 woohooo!!! awesome!!!

    • @cherifidristerfous4837
      @cherifidristerfous4837 Год назад +1

      @@andreaegli How can i hide it on mobile ? Cause it's showing itself whenever i touch the screen. Thank you

    • @andreaegli
      @andreaegli  Год назад

      @@cherifidristerfous4837 I've added code for that in the Notion file. Let me know if you can't find it

  • @ExCiSiioN1
    @ExCiSiioN1 Год назад +1

    Hello, great video. Does it work also without columns or only with containers?

    • @andreaegli
      @andreaegli  Год назад

      Hey, thanks 😊 it should work with both sections & containers but to be honest I haven’t tested it with sections. Give it a try and let me know

  • @brunosimonini4137
    @brunosimonini4137 3 месяца назад

    Hi Andrea thanks for this tutorial! I don't understand where I'm wrong but, if I put custom code in elementor dashboard nothing happens. If I add the code in the specific page adding an html widget the effect comes out... I also have another problem, it seems like part of the html code is shown in the header.
    Could you help me finding out what I'm doing wrong?
    Thank you!
    Bruno

    • @Gokuzarif
      @Gokuzarif 2 месяца назад

      did you change the class

    • @billycool9961
      @billycool9961 24 дня назад

      You can see my comment for solution. You need to add and on the "custom cursor html" part of the video

  • @kani7345
    @kani7345 Год назад +1

    Thank you very much for another great tutorial.
    any chance to get the exact code that you use in your video?
    i find it difficult to handle the missing parts.
    much appriciated.

    • @andreaegli
      @andreaegli  Год назад

      You are very welcome! The code in the notion file is the same as in the video. What do you think you’re missing?

    • @kani7345
      @kani7345 Год назад +1

      ​@@andreaegli Thanks for replying.
      1) i copied the html+css code and paste them into custom code (head).
      I added YOUR CSS CODE and after that i added YOUR HTML CODE.
      2)I copied the JS and paste it in custom code(body end)
      and nothing happened. couldnt even see the basic cursor.
      also i named some elemets with the class name "your-class" and still havent see anything.
      I wonder what am i missing.
      thanks alot again!

    • @kani7345
      @kani7345 Год назад +1

      maybe something is not matching with "big\small\eye\plain"?

    • @andreaegli
      @andreaegli  Год назад

      @@kani7345 Ok., can you send me screenshots of your code both, CSS+HTML & JS? here: herllo @ egliandreastudios.com
      this is too bizare not to investigate

    • @andreaegli
      @andreaegli  Год назад

      @@kani7345 that's what it is!!!!! let me change that in the notion file, I know where the mistake is

  • @ElDatoRD
    @ElDatoRD Год назад +1

    Hello Andrea, Emanuel here again. I love your browser! could you share the name?

    • @andreaegli
      @andreaegli  Год назад +1

      Hey Emanuel! I'm using Arc browser

    • @ElDatoRD
      @ElDatoRD Год назад

      @@andreaegli Thanks!

  • @relax2686
    @relax2686 Год назад +1

    amazing videos

    • @andreaegli
      @andreaegli  Год назад

      Thank you so much! Oops! Code has been now added in the description😁

  • @user-nl7fg9lf7h
    @user-nl7fg9lf7h 9 месяцев назад +1

    what's this browser?

    • @andreaegli
      @andreaegli  9 месяцев назад

      Arc browser, only a available for mac atm

  • @kovinhas
    @kovinhas Год назад +1

    Awesome tutorial 😃 I think you forgot the code 😛

    • @andreaegli
      @andreaegli  Год назад +1

      thank you! I did indeed!!!!! Oops! Code has been now added in the description😁

  • @decrea8439
    @decrea8439 Год назад +1

    i got some tricks about elementor and woocommerce that i would like to share with you

  • @sandrarg2661
    @sandrarg2661 Год назад +1

    Code? 🤔

    • @andreaegli
      @andreaegli  Год назад

      Oops! Code has been now added in the description😁

  • @mybrandzin
    @mybrandzin Год назад

    Hello Andrea!
    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!