# bappaditya721135/slider_component_vanila_js architecture

> Architecture diagram of the GitHub repository bappaditya721135/slider_component_vanila_js, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bappaditya721135/slider_component_vanila_js
- Repository: https://github.com/bappaditya721135/slider_component_vanila_js

## Overview

This is a small browser-based image slider. The JavaScript initializes slide positions and responds to arrow clicks, dot clicks, keyboard arrows, and a two-second timer; it also updates the active dot as slides change. The tree includes HTML and CSS, but their contents were not sampled, so the graph only identifies the HTML-backed elements implied by the script’s selectors. No README content was provided.

Main entry points: [`scripts.js`](https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/scripts.js) (Slider logic), [`index.html`](https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/index.html) (Dot indicators)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_slider_controls["Slider controls<br/>[index.html]"]
node_slides["Slides<br/>[index.html]"]
node_dot_indicators["Dot indicators<br/>[index.html]"]
node_slider_logic["Slider logic<br/>[scripts.js]"]

node_visitor -->|"clicks arrows"| node_slider_controls
node_visitor -->|"clicks dots"| node_dot_indicators
node_visitor -->|"presses arrows"| node_slider_logic
node_slider_controls -->|"dispatch clicks"| node_slider_logic
node_dot_indicators -->|"dispatch clicks"| node_slider_logic
node_slider_logic -->|"updates positions"| node_slides
node_slider_logic -->|"updates active dot"| node_dot_indicators

click node_slider_controls "https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/index.html"
click node_slides "https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/index.html"
click node_dot_indicators "https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/index.html"
click node_slider_logic "https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/scripts.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_visitor toneIndigo
class node_slider_controls,node_slides,node_dot_indicators,node_slider_logic toneTeal
```

## Components

### Other components

- **Visitor**
- [Slider controls](https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/index.html): `index.html`
- [Slides](https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/index.html): `index.html`
- [Dot indicators](https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/index.html): `index.html`
- [Slider logic](https://github.com/bappaditya721135/slider_component_vanila_js/blob/master/scripts.js): `scripts.js`

## Connections

- Visitor → Slider controls: clicks arrows
- Visitor → Dot indicators: clicks dots
- Visitor → Slider logic: presses arrows (evidence: `scripts.js`)
- Slider controls → Slider logic: dispatch clicks (evidence: `scripts.js`)
- Dot indicators → Slider logic: dispatch clicks (evidence: `scripts.js`)
- Slider logic → Slides: updates positions (evidence: `scripts.js`)
- Slider logic → Dot indicators: updates active dot (evidence: `scripts.js`)
