Тёмный

CSS Text Shadow on Mouse Move Effect -  

Wes Bos
Подписаться 191 тыс.
Просмотров 19 тыс.
50% 1

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

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 24   
@uzair004
@uzair004 4 года назад
Improvement in code : actually that extra if() can be avoided if we use clientX, clientY instead of offsetX, offsetY. clientX/clientY : give us coordinates relative to top-left corner of browser window (what we want) offsetX/offsetY; give us coordinates relative to top-left corner of parent Element , as here parent of text is that hero div , so it take it according to that. if no element parent is available then is taken as parent. conclusion: you can replace destructuring assignment line with this line let { clientX: x, clientY: y } = e; and delete if() statement.
@viniciusalbuquerque8030
@viniciusalbuquerque8030 7 лет назад
These videos are pretty good. Keep them coming. I'm not someone who always comment on videos, but since there was no comment yet I thought it would be good to say something.
@fLaMa3tEr
@fLaMa3tEr 7 лет назад
Really good work Wes, it's one of the best series about JavaScript in the internet.
@dboijahskush1251
@dboijahskush1251 7 лет назад
dude your videos are super awesome
@limerence-00
@limerence-00 7 лет назад
Thanks man, your videos help alot
@adibzadeh
@adibzadeh 7 лет назад
Thank you for your helpful videos
@wp_design_lab
@wp_design_lab 9 месяцев назад
Nice Video. How to Create a Text Shadow on Mouse Move Effect in WordPress?
@ohhellothere17
@ohhellothere17 2 года назад
can someone please explain me the formula for walk?.......i tried calculating it but still did'nt get it......🤔
@ericwilliam1697
@ericwilliam1697 6 лет назад
Has 'mousemove' been deprecated? It's not working. Console reports a MouseEvent on Click, but no MouseMove on hover.
@tobyflenderson7176
@tobyflenderson7176 6 лет назад
Wes you awesome dude.. Thanks man.
@aya2222
@aya2222 2 года назад
you can just write const {offsetWidth, offsetHeight} = hero;
@nathannagle6277
@nathannagle6277 3 года назад
Thanks again!
@skadz
@skadz 2 года назад
I keep getting 'TypeError: hero is null'. Any possible solutions?
@bungginting7964
@bungginting7964 4 года назад
THANKS......
@heathen838
@heathen838 4 года назад
this one was terribly confusing
@virajtrivedi4351
@virajtrivedi4351 7 лет назад
Great video, I guess you could use e.currentTarget to avoid that event delegation to children issue that you solved with this !== e.target
@uzair004
@uzair004 4 года назад
the formula is sort of magical , not getting it though.
@ragevl7201
@ragevl7201 Год назад
i thought i was smart until i learn JS
@prankromp
@prankromp 7 лет назад
at time 02:46 , const{offsetWidth: width, offsetHeight: height} = hero; what is that one line of code? i don't understand..
@blinger44
@blinger44 7 лет назад
Destructuring assignment. that line of code is essentially: var width = hero.offsetWidth var height = hero.offsetHeight developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
@prankromp
@prankromp 7 лет назад
thanks..got it for MDN reference..
@kissu_io
@kissu_io 6 лет назад
prank romp I mean, he just explained what this is.
@braham.prakash
@braham.prakash 4 года назад
at 7:20 can anyone help me with xwalk and ywalk
Далее
How is this Website so fast!?
13:39
Просмотров 506 тыс.
10 CSS PRO Tips and Tricks you NEED to know
9:00
Просмотров 59 тыс.
5 Stunning CSS Filters Tricks You Must See
5:03
Просмотров 26 тыс.
Новый CSS! 2024
18:06
Просмотров 26 тыс.
Custom HTML5 Video Player - #JavaScript30 11/30
24:34
Просмотров 120 тыс.