Awesome Cursor Animation With CSS & Javascript!

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

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

  • @mysterOrel7924
    @mysterOrel7924 5 лет назад +173

    Ed i laughed so much when you kicked the cursor lmao

    • @anjumayoub9077
      @anjumayoub9077 5 лет назад +6

      that kick was awesome LOL 😂

    • @geeknrd962
      @geeknrd962 4 года назад +1

      same. I didn't expect to laugh though.

    • @vimukthirajakaruna8827
      @vimukthirajakaruna8827 4 года назад +1

      Same 😬😂

    • @codeIMperfect
      @codeIMperfect 4 года назад +3

      This is one of those things that make you look stupid if you show them to someone, but are extremely funny

    • @onlyforyou9999
      @onlyforyou9999 4 года назад

      Yes mee too bro😁😁😂😂😂

  • @tobhuse
    @tobhuse 5 лет назад +25

    Yess!! As a CS student you are my main source of learing new and cool stuff for my projects! Thank you!

    • @manuxgp
      @manuxgp 5 лет назад

      same :)

    • @uontap
      @uontap 5 лет назад +3

      I also like CS, my favorite is CS:GO

    • @manannaik1341
      @manannaik1341 5 лет назад

      @@uontap I love R6S

    • @sudhamajayanthi
      @sudhamajayanthi 4 года назад

      @Unique Bacon Soldier This is a joke

  • @dawidepl7807
    @dawidepl7807 5 лет назад +118

    When it take you 3 hours to make working cool looking navbar, and then you see guy making better in 2 minutes...

    • @nglx5846
      @nglx5846 5 лет назад +8

      This comment made me laugh a lot but at the same time it hurted me HAHAHA

    • @dawidepl7807
      @dawidepl7807 5 лет назад +2

      @@nglx5846 LMAO

    • @danielhughes3758
      @danielhughes3758 5 лет назад +16

      Nothing wrong with that. Everything in programming takes much longer to learn than it does to implement once you really know it.
      I'm pretty certain it took him longer than 3 hours to get to this level with CSS 😉

    • @dawidepl7807
      @dawidepl7807 5 лет назад +4

      @@danielhughes3758 Hah, true. For now I have big problems with designing :/

    • @HamzaKhan-qm5bl
      @HamzaKhan-qm5bl 4 года назад +2

      Ed has already admitted that he designs or works on his video cintent before shooting so defunitely he did not dk it in 2 mins. No one can if you don't have a planned design.

  • @devdude7607
    @devdude7607 3 года назад +1

    You never fail to inject your viewers with your humor!
    Best greetings ever!

  • @imshubhamcodex
    @imshubhamcodex 5 лет назад +4

    Bro I see your all videos, and some of them repeatedly. You always put smile on my face. You made me a web dev. but still I am in the process to achieve your's level.
    Love from India ❤️

  • @yoyoneel45
    @yoyoneel45 4 года назад +1

    You are just really amazing, I love your character and your tutorials are based on trendy websites which were what I needed for my assignment. I'm actually basing myself on 5 of your tutorials. I'm so glad to have found you.

  • @RameenFallschirmjager
    @RameenFallschirmjager 5 лет назад +4

    Your channel is the MTV of programming youtubers!

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

    i'm actually obsessed with your videos thank you

  • @heezy6640
    @heezy6640 5 лет назад +1

    I can't wait for your JavaScript courses mate! Your content is top notch - much love from Australia!

  • @Yourworstneighbour
    @Yourworstneighbour 4 года назад +1

    Just wanted to say that you're really amazing for sharing all our your great knowledge.
    In addition, for having a really good sense of humor to top it all off.
    In the future, when I get the chance to support you, I will! Hope you have a great day :)

  • @cerealrakist7360
    @cerealrakist7360 4 года назад

    Dude you are so awesome!! Best personality I have ever watched!

  • @Daamilola
    @Daamilola 4 года назад +2

    Thanks, Ed. This is brilliant. Subscribed!

  • @heipadegdingamlesei
    @heipadegdingamlesei 4 года назад

    hahah finally a web dev that makes a tutorial enjoyable! way to go ed I was laughing so much at the sponsor joke

  • @infosandfacts7536
    @infosandfacts7536 5 лет назад +6

    The music let’s me feel I am in a mega cool bar - chilling 😛

  • @patrikmelicherik9626
    @patrikmelicherik9626 4 года назад +1

    I was always wondered how this effect is made. Now I know that it's really easy.

  • @CodePhilipYT
    @CodePhilipYT 5 лет назад +2

    This looks really awesome! I will try to recreate this

  • @shargenezangana9320
    @shargenezangana9320 3 года назад

    Your are a great teacher that keeps the experience entertaining but very informative. Thank you

  • @AccessCode101
    @AccessCode101 5 лет назад +15

    14:37 "Ok, let's calm down everybody."

  • @hampusbeijer604
    @hampusbeijer604 5 лет назад +1

    Dude your the best! You're funny, professional, and you just fkn rock. Keep going bro!!!!

  • @peternicholson26
    @peternicholson26 5 лет назад

    This is excellent timing for a project I've got on at work. Champion

  • @davidedelgatto5631
    @davidedelgatto5631 5 лет назад +4

    I cannot wait to buy your JavaScript course

    •  4 года назад +1

      Especially that it doesn't work.

  • @samanthkumar1332
    @samanthkumar1332 5 лет назад

    your tutorial keeps me boosted! thank you @Dev Ed

  • @VictorBalaguera
    @VictorBalaguera 4 года назад +2

    I love you and I love this tutorial. With that said, when implementing and customizing this I found an interesting bug: if you have a site with multiple sections and so on, the custom cursor on scrolling will go up and down like crazy. While this is fun, it is not very useful. To fix this:
    1. On css, change position: absolute to position: fixed;
    2. on js: change e.pageX and e.pageY to e.clientX and e.clientY.
    That should do it.

    • @rohitb23
      @rohitb23 3 года назад +1

      Thanks. Why are you like the only person who noticed this? Lol I went to the comments expecting more and had to search through them.

    • @VictorBalaguera
      @VictorBalaguera 3 года назад

      @@rohitb23 anytime!

    • @buchke_bhai
      @buchke_bhai 2 года назад +1

      Thank You soo much man!

  • @codingwithnamit8551
    @codingwithnamit8551 3 года назад +1

    I didn't know that we can use negative z-index!
    Btw helpful video👍

  • @nubcops220
    @nubcops220 5 лет назад +4

    I swear to GOD your soooo good i just click on your videos becuase I like your personality your amazing please never ever stop uploading plz

    • @flolegend6402
      @flolegend6402 4 года назад

      same here. I even watch videos that dont even concern me. Best RUclipsr out there 100%. Dev Ed> pewdiepie

  • @aparalyzedconch
    @aparalyzedconch 5 лет назад

    XD Why is your desktop so clean, I'm jealous. Your tutorials rock by the way.

  • @abinashmohanty4258
    @abinashmohanty4258 4 года назад +1

    Cursor: none; is not working on hovering over links and buttons. Please tell How to solve it?

  • @separatetraveler8226
    @separatetraveler8226 4 года назад

    It's really cool !!
    Thanks Dev Ed
    .

  • @PabloPellegrini
    @PabloPellegrini 4 года назад +3

    0:19 I did not expect that xDDDDDD

  • @thugartist9268
    @thugartist9268 5 лет назад +1

    Best tutorials ever!. Ed, when you will make a Pyhon course, designed for total beginners? For sure I will buy it, because your teaching style is awsome.. :)

  • @DavidElstob73
    @DavidElstob73 5 лет назад

    Super cool tutorial, Ed. Add the cursor: pointer back on the hovered-links and it looks nice! :)

  • @valentineaglr6983
    @valentineaglr6983 4 года назад +1

    Thank you so much !! I was trying since this morning 😅

  • @rychei5393
    @rychei5393 2 года назад

    Clicked like for that amazing intro!

  • @0bbie610
    @0bbie610 5 лет назад

    Also. I'd probly just buy your javascript course because you're awesome. And very knowledgable

  • @salekinrupak7055
    @salekinrupak7055 5 лет назад

    Can't wait for your Js course Ed! 😍

  • @becayebalde3820
    @becayebalde3820 2 года назад

    Thank you so much for this awesome and fun course!

  • @vasylbats2544
    @vasylbats2544 4 года назад +4

    I've worked on something similar recently. But I added position "fixed" to the tracking block at the top left corner. Then I changed transform-translate on "mousemove" with JS. I read somewhere on Stack overflow that it's better to change transform properties instead of top & left for the smooth transition effect. I used e.pageX and e.pageY as well but I got problems with transform on Y-axis on page scroll, so I had to change it to e.clientX and e.clientY. So the line of code looked like this: /* let translation = "translate(" + e.clientX + "px, " + (e.clientY + document.body.scrollTop) + "px)"; item.style.transform = translation; */ I am not sure if I've done it right but it works fine too :)

  • @dequan300
    @dequan300 5 лет назад

    Can't wait for the courses

  • @seemasaharan9461
    @seemasaharan9461 4 года назад

    My favourite tech RUclipsr.

  • @richyrose99
    @richyrose99 5 лет назад +1

    i really love your videos i always learn so much so thank you :)

  • @sythe263
    @sythe263 3 года назад

    Dude you are amazing !

  • @sudheeps3584
    @sudheeps3584 4 года назад

    maaan!!!! ur amazing .. big fan of urs .. learnt most of my coding from ur channel ... keep on it doing ... also do a MERN stack video :P

  • @manuxgp
    @manuxgp 5 лет назад

    I love your videos man! Thank you so much

  • @developedbynick
    @developedbynick 5 лет назад +1

    we need a javascript course. I have your html and css course, and I've watched it. now, we need a JS course ASAP

  • @MLGRicky
    @MLGRicky 4 года назад

    bro the squarespace ad had me dying! xD

  • @jaredzuniga827
    @jaredzuniga827 5 лет назад

    Love your tutorials!

  • @vskand
    @vskand 5 лет назад

    Appreciated the tutorial, appreciated Brock Berrigan.

  • @dado9873
    @dado9873 4 года назад

    Thanks Ed for awesome video.

  • @telugucartoonsworld2565
    @telugucartoonsworld2565 5 лет назад

    This is the only website of yours that i can do without seeing your video.

  • @jamil_mikael
    @jamil_mikael 4 года назад +1

    it's going great on my end , but the cursor won't move away from the side of the window object and its frustrating ...its at the border and going nowhere else !!

  • @anjumayoub9077
    @anjumayoub9077 5 лет назад

    really excited for JavaScript 🔥😍

  • @SwarupKumarKuila
    @SwarupKumarKuila 5 лет назад

    I am from India , I love your Chanel,
    I learn many things from you , thank you soo much.

  • @jumaelahmed9995
    @jumaelahmed9995 4 года назад

    you are my fav dev Ed,❤️

  • @shreyaskshirsagar552
    @shreyaskshirsagar552 2 года назад

    Thanks, helped a lot !

  • @mihailodukic601
    @mihailodukic601 5 лет назад

    Sup Ed the amazing Dev from Romania . Love from Serbia !!!

  • @AshishNallana
    @AshishNallana 4 года назад

    Ed ... ❤️ I love the fun you make in between the videos😀😀😀😀

  • @the_awakening_msaha5132
    @the_awakening_msaha5132 5 лет назад

    1000 views in just 27 minutes... Yes I check yt notifications everyday for your latest videos. #my_gorgeous_teacher_on_the_internet

  • @animeworld7119
    @animeworld7119 3 года назад

    its giving me error
    Cannot read properties of null (reading 'addEventListener')
    at line : mouseCursor.style.top = e.pageY + "px";

  • @jeysonvillalobos4280
    @jeysonvillalobos4280 4 года назад

    Hi, I have a question if you add multiple sections with scroll does not work. It only works in the first section. How would you solve this?

  • @x9wozz
    @x9wozz 4 года назад +1

    Instead of making items in nav turning their color to white you could just use backdrop filter to invert. Imho that would be cooler and wouldn't make longer text disappear. Cool nonetheless

    • @4MXW
      @4MXW 2 года назад

      thx u sir

  • @axelblaze3361
    @axelblaze3361 5 лет назад

    What about when you fill the background-color on the section container the cursor will not work on the section with background-color whether I use z-index on the section container with plus side or the negative side

  • @reedbarber
    @reedbarber 4 года назад

    Ed, You're the Golden Child of WebDev. Awsome personality to boot! BTW, what Screen Recording software do you use? *Peace!

  • @vanschependom
    @vanschependom 5 лет назад

    How do you copy the lines on 1:31?

  • @biswajitmondal4263
    @biswajitmondal4263 5 лет назад

    Please make a full detailed and exciting javascript and its frameworks i.e angular, react courses like html css.... i am very excited after joining this course

  • @SAAARC
    @SAAARC 5 лет назад

    Good content my man

  • @omarminotti
    @omarminotti 3 года назад

    Hi, how I can do the same thing over a video? I want to create a circle that when pressed it opens a pop-up to starts the video

  • @mahammadalialkhasli9004
    @mahammadalialkhasli9004 4 года назад +1

    Perfect. You are amazing.

  • @mohammed-i786
    @mohammed-i786 5 лет назад +1

    Will this thing allow any element on the web page to be clickable?

  • @Stoney_Eagle
    @Stoney_Eagle 5 лет назад

    Your openings crack me up every time 😂

  • @icalowallpapers280
    @icalowallpapers280 2 года назад

    the opening killed me 🤣🤣🤣🤣🤣🤣🤣🤣warap with the cursor

  • @DEEPAKKUMAR-xe2vb
    @DEEPAKKUMAR-xe2vb 4 года назад +1

    Waiting for blender 😍🔥

  • @psychologyfactstothinkabout
    @psychologyfactstothinkabout 5 лет назад

    Make a loading icon so like the border of the icon is moving with blue like how google sign in has the blue thing moving, add that around the icon or a part of the icon shows the page is loading or doing something

  • @sayaksengupta5451
    @sayaksengupta5451 4 года назад

    what if i have a long page and i need to scroll , how can i increase the top property of the cursor on scroll?

  • @eng-ammaralsaiary545
    @eng-ammaralsaiary545 3 года назад

    I designed an entire cuberto website and it took me a whole month of continuous work at a rate of 9 hours per day

  • @brigittavarga5525
    @brigittavarga5525 4 года назад

    Thank you so much for this! It‘s really helpful (and fun) :-)

  • @SvetaSveta-ms4hi
    @SvetaSveta-ms4hi 4 года назад

    Thanks a billion. You're amazing. Be happy 😍

  • @mahinqureshi5809
    @mahinqureshi5809 4 года назад

    hey Ed .. help me out.
    so i m building a e-commerce web application and i m kinda stuck in a point . so how can i store my "ORDER ITEM" page information , to "CART" page and then after confirming what the customer ordered it goes to DB . i can work with DB but i m stuck at taking "order information" to my "cart " page ..and i dont to use any temp DB for it . i m new in web development and i not using any JS Framework . and suck at explaining stuff .. hope you getting what i m saying

  • @mimitecrazy
    @mimitecrazy 3 года назад

    Hey can you tell me how we could do this with ' nav-links a ' cause it won't change the color of the font when it's an actual link

  • @XbattlepopeX
    @XbattlepopeX 5 лет назад +1

    How could we do a 2 layer image, so when we do this instead of see in top layer we see part of a bottom image?

  • @livioangelim7604
    @livioangelim7604 2 года назад

    You are great, thanks for sharing!!

  • @lilykustova6359
    @lilykustova6359 5 лет назад

    Great video! Thanks a lot!

  • @DariaBrinza-w7u
    @DariaBrinza-w7u 4 года назад

    When you watch exactly what you searched for and hear on the background the remixed song from your favourite movie. That's sooo good, lol

  • @will2r
    @will2r 5 лет назад

    ed u are god tier

  • @awaiszahid1597
    @awaiszahid1597 3 года назад

    @Dev Ed I have a question if I bring the cursor near the scroll bar the horizontal scrollbar appears and if apply overflow: hidden; it automatically vanishes the vertical scroll bar what should I do?

  • @gihanpunarji6192
    @gihanpunarji6192 2 года назад

    how to add backdrop filter to the cursor please tell

  • @darkcodelab
    @darkcodelab 5 лет назад

    Legends say that it is not easy to get a heart from Dev Ed.

  • @rishi76
    @rishi76 5 лет назад +2

    That was Amazing,

  • @bongamene3087
    @bongamene3087 5 лет назад

    I actually love you!

  • @banananaz674
    @banananaz674 4 года назад

    Since I can't find the answer anywhere online, is it possible to use a CSS/JS file as a Windows standard mouse cursor? Basically using it outside of the CSS file, and if not, is it possible to just constantly run this file through notepad and keep it as a "default" cursor? Thanks!

  • @gabrielalejandromartinezla327
    @gabrielalejandromartinezla327 5 лет назад

    How you learn or create this amazing stuffs!! Ed you're a great dev youtuber haha

  • @7ollock
    @7ollock 5 лет назад

    DevEd for president

  • @hamzanasri9414
    @hamzanasri9414 5 лет назад

    YOU ARE SO FUNNYYY, AND A VERY GOOD TEACHER!!!!

  • @jeffchow6722
    @jeffchow6722 3 года назад

    i spit my water when Ed kicked the cursor HAHA

  • @elbekrakhimov2757
    @elbekrakhimov2757 4 года назад

    guys, need your help - I wrote all of the code exactly the same, but it can't see .link-grow. what to do?

  • @helluci6449
    @helluci6449 4 года назад

    I write the exact same code, the cursor's background (grow) changes but doesn't scale. :/

  • @djsquid1988
    @djsquid1988 4 года назад +2

    This is awesome, but when implemented it's really laggy when scrolling down a page (Chrome) any fix for that?

    • @nigelmoyes9798
      @nigelmoyes9798 4 года назад

      If you use clientX and clientY instead of pageX and pageY, the cursor will behave as expected.

    • @4MXW
      @4MXW 2 года назад

      Also what I needed to add was a box-shadow. So I don't see the "pixelated" kind of laggy border when I move the mouse too fast.

  • @heyitzami442
    @heyitzami442 5 лет назад

    What you did with the transition and the transition-property, you could have just set it as "transition: background 0.3s ease, transform 0.3s ease;"

  • @AbhishekTiwari-xt1kt
    @AbhishekTiwari-xt1kt 4 года назад

    Can anyone explain me why the deved(logo) covered so much space in the nav?

  • @christosadamos8938
    @christosadamos8938 5 лет назад

    Ed I noticed in the end of the video when you scrolled down cursor stucks on the same position and doesn't follow up.

  • @MarkHerpich
    @MarkHerpich 3 года назад

    Instead of animating the top/left properties wouldn't it performance wise be better to animate the transform(XY) properties instead?