So three Container elements are nested into the carousel-inner Container.Įach of the three slide containers will get assigned the Class name carousel-item. With the base structure of the slider in place, the children Containers can be added. The Class name carousel-inner is assigned.ģ. You can also use the Element pane to move the second container into the first. Next, a second Container element is nested inside the first Container by dragging and dropping it onto the canvas. The data attribute data-ride with value carousel is applied on the Element Pane.Ģ. Next the Class names carousel and slide are applied. In the example, the ID carousel-example is given. On the Styles pane the ID name is associated with the slider. The first parent Container element is added to the canvas. Foundation, Materialize and Bootstrap offer some great documentation (links below) on the creation of components with the right combo of classes & attributes.ġ.
The attribute name can vary depending on the framework you are using. You will also find Aria attributes within this section allowing you to set Aria based roles for elements in your design. This hard work is eliminated for you using the Foundation, Materialize and Bootstrap CSS frameworks as the JavaScripts are built right into the framework and can be pulled in by using Attributes.ĭepending on which framework you are using, there are many different options to build using attributes. But these types of features require communication with JavaScript, which means building sites without this app you’d have to mess with pulling those codes in yourself. Interactive elements add a touch of professionalism and a dash of fun to any website (who doesn’t like a nav menu that transforms into a hamburger icon on small devices?). See them as ‘hooks’ that tie an element to Javascript and clarifying can be used to as and to specify additional information about the element. The data attributes play an important part in adding interactivity to a design.