Magento widgets are graphical interfaces to configure blocks in the frontend. For every widget, there is a configuration page available where you can set the required values for that widget.
When the configuration is done, you can configure the layout instructions to show the widget at several places in the frontend.
In this recipe, we will create a new module where we will create our own widget. We will create a product slider with the products of a category that we can configure in the widget.
When we have performed the required configuration for the widget, we will finish the representation in the frontend. We will create a product list that we will style with a jQuery slider script.