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

Veröffentlicht am: 26 Juni 2014
auf dem Kanal: 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!


Auf dieser Seite können Sie das Online-Video From jQuery to Native JavaScript - Part 2: CSS Class Manipulation mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Kyle Foster 26 Juni 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,483 Mal angesehen und es wurde von 30 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!