Lab #9 Carousel

Lab #9 was another lab where I was given all of the code but needed to add something in order to make it function differently. In this case, I was supposed to make a carousel for some images which is basically a slide show that you can interact with to scroll to the next set of images.


The screenshot above is not the whole website but just the aspect that I added to the website aka the carousel. The image shows that I added two ways to scroll through the top news subjects. You could either use the arrows on the top right to scroll or use the three circles on the bottom to navigate. The things I added in order to create this functioning carousel lies within mainly the JavaScript. The HTML aspect of the page consists of divs containing divs that would hold the data (images and titles). I added classes to the divs wrapping three of the images and text so they would be in a set. I then added JavaScript that would enable when a user clicks the buttons on the page to navigate and modify a variable that chooses which 3 images and titles would display. I modified this variable with parameters like 1 and -1 which would determine whether to go forward or backward in the slideshow. This simulates the carousel which users can interact with to be illustrated as a slideshow. The fade animations within the page lie within the CSS which uses Webkit and keyframes to execute the effect when the buttons are interacted with.

Web designers would need to understand how to do this in an instance where they would want to make a gallery website to display images related to a certain product or topic. Utilizing carousels to imitate slideshows are useful for displaying images or information and makes it more appealing and is also more likely to be clicked on by users. It can be used to grab the attention of users and also appeal to others that would want to buy your website to help them promote their product.

Comments

Popular posts from this blog

WBL Workshop #6 Interview Skills

CTE Expo Reflection Journal

Lab #12 Reflection