8000 GitHub - robleto/us-states-visited-map: As states are "visited" in chronological order, they're highlighted on the map with the year displayed.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

robleto/us-states-visited-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

US States Visited Map

An interactive map showing US states visited over time with animations.

Overview

This repository contains both React and vanilla JavaScript implementations of an animated US states visited map. As states are "visited" in chronological order, they're highlighted on the map with the year displayed.

Implementations

Include the required files in your HTML:

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.0/gsap.min.js"></script>
<script src="./js/us-map.js"></script>
<link rel="stylesheet" href="./css/styles.css">
<div id="map-container"></div>

Then initialize:

document.addEventListener('DOMContentLoaded', () => {
  const visitedStates = [
  { "state": "DE", "date": "1976" },
  // ... your state data
  ];
  
  const map = new USStatesMap('map-container', visitedStates);
  map.initialize();
});

Customization

You can customize:

  • The fill color for visited states
  • Animation timing and effects
  • Styling through CSS

License

MIT

About

As states are "visited" in chronological order, they're highlighted on the map with the year displayed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0