CHROMATIC-SYSTEM v1.03_MANUAL_IMAGE_AND_TEXT_FADE_IN-OUT_CHANGER_DISPLAY_ENGINE

INFORMATION & CODE

Manual Shaped Image & text Fade in-out Changer Display

What the Code Does

The code creates a manually controlled image-and-text slider. It displays four different images alongside four corresponding blocks of text. The user switches between the four items by clicking one of the numbered circular buttons underneath the display. When a button is selected, the associated image and text fade in while the other three fade out.

How the Code Works

The HTML provides the structure of the component. The .text-wrap contains four .textbox elements, each with a heading and paragraph. The .overlay contains four .images elements, which correspond to the four text boxes in the same order. The .dotbox contains four buttons that act as navigation controls. For example, clicking button 1 displays the first image and first text box, while clicking button 3 displays the third pair.

The CSS controls the appearance and layout. The .main-wrapper creates the main display area, while .overlay creates the large curved image section on the left. Each image and text box is positioned on top of the others, with their opacity initially set to 0. The first image and first text box are given opacity: 1, so they are visible when the page loads. The transition-duration: 3s property creates the three-second fade effect when JavaScript changes the opacity.

The JavaScript controls which image, text box, and navigation button are active. querySelectorAll() collects all the images, text boxes, and buttons into separate collections. When a navigation button is clicked, focusOnDot() first hides all images and text boxes and resets all buttons to their inactive appearance. It then converts the button's ID (10, 11, 12, or 13) into an array position by subtracting 10. For example, button ID 12 becomes array position 2, which selects the third image and third text box. That selected pair is then given opacity: 1, causing it to fade into view.

How to Use the Code

To use the component, place the HTML in your webpage, put the CSS in the referenced styles.css file, and put the JavaScript in scripts.js. Replace the four image URLs with your own images and replace the headings and paragraphs with your own content. The important rule is that the images and text boxes must remain in the same order: the first image corresponds to the first text box, the second image to the second text box, and so on. The component works as a simple manual four-slide fade changer, with the numbered buttons providing direct navigation between each image-and-text combination.

HTML

CSS

JAVASCRIPT

PREVIEW

Manual Shaped Image & text Fade in-out Changer

Tim Berners-Lee

In 1989, Tim Berners-Lee invented of the modern day world wide web, an Internet-based hypermedia initiative for global information sharing while at CERN, the European Particle Physics Laboratory. He wrote the first web client and server in 1990. His specifications of URIs, HTTP and HTML were refined as web technology spread.

Modern Day Computing

Computers these days are light weight, portable with much more memory than the big bulky computers of the seventies, eighties and early nineties. Giving the modern day programmer much more computing power and a much cleaner look.

Computing On The Go

As mentioned before the modern day computing is both light weight and portable meaning it is possible to work anywhere you like providing that you have connection to the internet or company server. While the invention of wi-fi has made home computing more flexible an mobile without trailing wires.

Maximum Mobile Computing

The invention of the mobile phone has allowed computing to become even more mobile than the laptop and the Iphone has more memory than a lot of laptops. So with its large memory and being pocket sized the Iphone is the ideal tool to use when you are on the move.

Tim Berners-Lee inventor of the internet. computer desk. outside computing. Woman on a mobile phone.