From jQuery to Native JavaScript - Part 2: CSS Class Manipulation

Опубликовано: 26 Июнь 2014
на канале: Kyle Foster
1,483
30

The second in my series of videos on moving comfortably away from jQuery and toward using native JavaScript APIs - the stuff baked into your browser. In it I go over the basic forms of CSS class manipulation and their syntaxes, including jQuery, the classList API, and Classie - the best option out there, in my humble opinion.

You can see/play around with the project on CodePen here:
http://codepen.io/hkfoster/pen/yGElx

You can grab Classie here:
https://github.com/desandro/classie

And you can see my performance tests here:
http://jsperf.com/class-manipulation-has
http://jsperf.com/class-manipulation-add
http://jsperf.com/class-manipulation-...
http://jsperf.com/class-manipulation-...

If you have any questions or comments, feel free to leave them below. Thanks!


На этой странице сайта вы можете посмотреть видео онлайн From jQuery to Native JavaScript - Part 2: CSS Class Manipulation длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Kyle Foster 26 Июнь 2014, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,483 раз и оно понравилось 30 зрителям. Приятного просмотра!