Posts

Showing posts with the label Carousel

Creating a JavaScript HTML and CSS Image Carousel

JavaScript Experiment: Carousel images  Part 1 SET UP: The first thing I am going to do is set up my HTML file, and the CSS that will control the design.  In the head of the html I will include the meta information that will help describe the purpose, and content of the page. The viewport is important not only for mobile design, but accessibility.  We want users to be able to scale the page to at least 5 times it's initial size.  This way if they need to enlarge font and content to see it, they can.  In the body, we'll define the objects/tags we want to be able to manipulate in both the CSS and in the javascript. The easiest and fastest way to change items in the HTML with JavaScript is with the unique id applied to the item.  The DOM can find these, and apply the code to them without much hassle.  For items I will be manipulating in the JavaScript, I add an id, with a snake case.  JavaScript can get fussy about hash marks.  For classes, or C...