Code Monkey home page Code Monkey logo

react-globe's Introduction

React Globe

cover

This project was created with the intention of studying and improving Javascript development techniques. The Globe is based on what is presented on the GitHub homepage.

โœจ Technologies

This project was developed with the following technologies:

  • React
  • Next.js
  • TypeScript
  • Three
  • Three-globe

๐Ÿš€ How to run

  • Clone the repository
git clone https://github.com/igorssc/react-globe.git

cd react-globe
  • Install dependencies
yarn

# or

npm init
  • Start the server
yarn start

# or

npm run start

You can now access localhost:3000 from your browser.

Options

You can change animation settings via the config.globe.ts file

globeConfig:

Name Type Default
pointSize number 1
globeColor string "#062056"
showAtmosphere boolean true
atmosphereColor string "#ffffff"
atmosphereAltitude number 0.1
emissive string "#000000"
emissiveIntensity number 0.1
shininess number 0.9
polygonColor string "rgba(255,255,255,0.7)"
ambientLight string "#000000"
directionalLeftLight string "#000000"
directionalTopLight string "#ffffff"
pointLight string "#ffffff"
flightTime number 1000
flightLength number 0.9
rings number 1
maxRings number 3
autoRotate boolean true
autoRotateSpeed number 0.5
initialPosition:
lat number 22.3193
lng number 114.1694

flights:

Name Type Example
order number 1
from string "New Delhi"
to string "Kuala Lumpur"
startLat number 28.6139
startLng number 77.209
endLat number 3.139
endLng number 101.6869
arcAlt number 0.2
color string "#FFFFFF"

๐Ÿช„ Preview

Access https://react-anim-globe.vercel.app

๐Ÿ“ License

This project is under MIT licence. See the archive LICENSE to more details.


Made with ๐Ÿ’œ by IGS Design - Igor Santos ๐Ÿ‘‹

react-globe's People

Contributors

igorssc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.