Тёмный

Creating Custom Cursors - React and Framer Motion 

Cand Dev
Подписаться 15 тыс.
Просмотров 36 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 59   
@candyball101
@candyball101 Год назад
thank you!! really broke down the solution in a way that was easy to follow and implement, you made my personal website look that much cooler
@CandDev
@CandDev Год назад
Nice work!
@user-oq1nf5eq9d
@user-oq1nf5eq9d 2 месяца назад
Whoever is placing the problem of lagging..🟥🟥🟥 Replace the variants part with this ✅, adding the transition smooth property: const variants = { default: { x: mousePosition.x - 16, y: mousePosition.y - 16, transition: { type: "smooth", duration: 0, }, }, text: { height: 150, width: 150, x: mousePosition.x - 75, y: mousePosition.y - 75, backgroundColor: "yellow", mixBlendMode: "difference", transition: { type: "smooth", duration: 0, }, }, };
@0001-exe
@0001-exe 5 дней назад
i can't believe it's that easy,, THANK YOU SO MUCH!!
@ageconcepts9829
@ageconcepts9829 2 года назад
Thanks Man. The pointer-events: none saved my life.
@Its-InderjeetSinghGill
@Its-InderjeetSinghGill Год назад
The chickens in the background appreciating you for creating this video.
@CandDev
@CandDev 11 месяцев назад
Yeah, I have a lot of chickens in my house.
@DusanLukic-mw8bw
@DusanLukic-mw8bw 4 месяца назад
@@CandDev hi, some people including me have issues with delayed cursor animation, do you have any suggestion?
@Skillthrive
@Skillthrive Год назад
Great video! I can't wait to implement this is my next project.
@AR7editing
@AR7editing Год назад
Hi, good tutorial but dont use pageX and pageY use clientX and clientY instead because using page when you scroll down your mouse cursor just desynchronized and looks really weird
@raheem81kg
@raheem81kg Год назад
really helpful, thank you
@MrFACTS-mk1ib
@MrFACTS-mk1ib Год назад
Great video. To the point and exactly to understand how this works.
@mgamingyoutube
@mgamingyoutube Год назад
My cursor motion is delaying little bit can you help??
@mankinder1848
@mankinder1848 5 месяцев назад
For me also...
@DusanLukic-mw8bw
@DusanLukic-mw8bw 4 месяца назад
@@mankinder1848 also, is there any solution?
@vaibhavshukla975
@vaibhavshukla975 4 месяца назад
try to set transition property in variant as transition: { type: "smooth", duration: 0, },
@DusanLukic-mw8bw
@DusanLukic-mw8bw 4 месяца назад
@@vaibhavshukla975 it works, duration was causing a problem, thanks :)
@webwithwaleed
@webwithwaleed 4 месяца назад
@@vaibhavshukla975 this works but when i change the cursor variant it dont transition to that variant. how can i then fix this
@dizzland
@dizzland Месяц назад
amazing tutorial
@CandDev
@CandDev Месяц назад
I'm really glad you found it helpful
@anthonyferrer1034
@anthonyferrer1034 Год назад
Why is mine not moving smoothly? There's a bit of delay before the actual cursor follows the circle and it doesn't have the same speed as the actual cursor.
@AhmadMughal1
@AhmadMughal1 Год назад
same issue did you find any solution?
@DiscipleW
@DiscipleW 9 месяцев назад
I useRef for this and have the same issue. I believe is the react shadow dom async update. Did you find any solution to this? I found that translate works better then top, left ref.current.style.transform = `translate(${currPos.x - (btnWidth / 2)}px, ${currPos.y - (btnHeight / 2)}px)`;
@PleizyParagas
@PleizyParagas Год назад
use ref and then use the built in ref.curret?.animate function. It's buttery smooth
@unhealthytomato3219
@unhealthytomato3219 8 месяцев назад
can you explain more?
@manansoni2598
@manansoni2598 3 месяца назад
Hello! I tried implementing it and it's working... But the response time seems very off. It's lagging VERY much! How to resolve it? and BTW thanks for the tutorial!
@user-oq1nf5eq9d
@user-oq1nf5eq9d 2 месяца назад
Yes its a lot lagging
@rizqyhbb
@rizqyhbb Год назад
This is really great!!! Gonna try this
@Kdartbe
@Kdartbe 2 года назад
this is the only video that works thanks
@divyanshunaudiyal922
@divyanshunaudiyal922 8 месяцев назад
have a subscribe thank you for this video i've been searching to animate my cursor from a long time
@julienheng3880
@julienheng3880 3 месяца назад
my cursor is pretty laggy ... do you happen to know why?
@quinx9444
@quinx9444 6 месяцев назад
really helpful video thanks🤗
@pavelemelianov1707
@pavelemelianov1707 7 месяцев назад
Nice work!
@MihirAmanRaj
@MihirAmanRaj 5 месяцев назад
is mixblendmode not working for anyone else here.
@sharan.r
@sharan.r 9 месяцев назад
Anyone know how i can remove the custom cursor from the window when the cursor/mouse leave the window?
@andrillaf
@andrillaf Год назад
This is good, but the issue is it causes so many re-renders of the entire page. Is there a way to only re-render the cursor?
@katadermaro
@katadermaro Год назад
why don't you create a seperate cursor component?
@silesianguy87
@silesianguy87 2 года назад
amazing and super cool ;) U R the best
@mekelilyasa9561
@mekelilyasa9561 7 месяцев назад
It's glitching and flashing on my app
@aquariumfish_fish
@aquariumfish_fish 4 месяца назад
same
@jaykhan_sound
@jaykhan_sound Год назад
this is great thanks!
@mohamedabdulla8097
@mohamedabdulla8097 Год назад
thankyou man awesome
@AhmadMughal1
@AhmadMughal1 Год назад
wouldnt this method cause the state to be updated way too much time constantly?
@Kira-vf7xr
@Kira-vf7xr Год назад
cool, you are amazing
@user-ed6dm2xi3h
@user-ed6dm2xi3h Год назад
cool, thank you!!
@lionetillo
@lionetillo Год назад
You're a machine
@lmd4881
@lmd4881 2 года назад
so so SO cool :)
@raheem81kg
@raheem81kg Год назад
sub gained, really cool indeed
@alexisk5978
@alexisk5978 Год назад
THANK YOU !!!
@the_proletariat
@the_proletariat Год назад
Thanks! This was very helpful
@regilearn2138
@regilearn2138 2 года назад
Hi ,would appreciate if you can do a series set,for how to do crud operation with all the form controls in react which include example like input /select /radio btn redio btn group /checkbox /date picker/time / file upload/ date range etc...,
@ranggatriwibowo2287
@ranggatriwibowo2287 2 года назад
🔥🔥
@mohamedabdulla8097
@mohamedabdulla8097 Год назад
welome more
@Kdartbe
@Kdartbe 2 года назад
how can i write something inside the cursor
@ftwo22
@ftwo22 2 года назад
maybe with an image? in the background. In the video set backgroundColor, but you can set backgroundImage. Idk, you can try it.
@davidkim2016
@davidkim2016 Год назад
not performant.
@zexiliu2958
@zexiliu2958 Год назад
useeffect will force to render times by times
Далее
6 ideas for animating your app with Framer Motion
7:55
Framer Motion | Page Transitions in React
13:15
Просмотров 43 тыс.
My Top 5 Techniques for Web Animation
9:58
Просмотров 84 тыс.
Subtle, yet Beautiful Scroll Animations
5:04
Просмотров 1,7 млн
Framer Motion (React Animation Library) Crash Course
1:12:31
Framer Motion (React) - The Basics
17:07
Просмотров 28 тыс.