Skip to content

zackycodes/Stock-Market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Stock Market Simulator

A minimalist, high-stakes financial simulation built with a focus on elegant design and fluid interactions. Experience the volatility of the market through a refined, "Racing Green" and "Gold" aesthetic.


The Aesthetic

The interface is designed with a "Luxe Serif" style, utilizing Didot and Playfair Display typography to evoke the feeling of a premium trading floor.

  • Racing Green & Gold: A sophisticated palette inspired by heritage luxury.
  • Dynamic Visualization: A sleek, vertical bar chart that tracks market fluctuations in real-time.
  • Minimalist Feedback: Subtle, fading status messages and smooth CSS transitions.

🕹️ How to start

The simulator starts you with a $100 bankroll. The goal is simple: buy low, sell high.

  1. Buy ($10): Acquire a stock for a flat fee. This reduces your bank balance and increases your portfolio.
  2. Monitor: Watch the vertical graph. The height represents the current market value (0% to 100%).
  3. Sell: Liquidate your holdings.
    • Profit: Selling when the bar is above the 50% breakeven point.
    • Loss: Selling when the bar is below 50%.

🛠️ Technical Highlights

  • Volatility Engine: Uses a random percentage-change algorithm to simulate market unpredictability.
  • Cubic-Bezier Animations: The graph utilizes custom easing (0.175, 0.885, 0.32, 1.275) for organic, lifelike movement.
  • Responsive Parallax: Features a subtle mouse-tracking effect for added depth.
  • Pure Stack: Built entirely with vanilla HTML5, CSS3, and JavaScript—no external dependencies required.

🎨 Design Tokens

Element Value
Primary Green #1a3026 (Racing Green)
Accent Gold #c5a059
Background #0a0a0a
Typography Didot, Playfair Display, Serif

"A well-written and clean script for the modern minimalist."

About

A minimalistic version of a typical stock market simulator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages