June 2017
Beginner to intermediate
338 pages
9h 2m
English
In this recipe, we will build on the concepts discussed in the preceding recipe. The plugin we make in this recipe will be used to help us showcase Flexbox layout options in the next chapter. For now, we will focus on making the plugin itself. The goal of the plugin is very simple--we want to have a plugin that we can pass two classes to. Then, in our HTML, we will add a button, and it will serve as a toggle. On clicking it, it will find the first css class and replace it with the second one. On another click, it will do the opposite.
Read now
Unlock full access