# Technical Stack Reference
## Table of Contents
1. Core Technologies
2. Animation Libraries
3. Smooth Scrolling Solutions
4. 3D & WebGL
5. Build Tools & Frameworks
6. Performance Optimization
7. Deployment & Hosting
---
## 1. Core Technologies
### CSS Approach
```
METHODOLOGY
├── CSS Custom Properties (required)
├── Modern CSS (container queries, :has(), etc.)
├── Utility-first OR Component-based (not mixed)
└── PostCSS for processing (autoprefixer, nesting)
RECOMMENDED STACK
├── Plain CSS with custom properties
├── Tailwind CSS (for rapid prototyping)
├── CSS Modules (for React/Vue scoping)
└── Vanilla Extract (for type-safe CSS-in-JS)
```
### JavaScript Standards
```javascript
// Modern JS features to use freely
const features = {
modules: true, // ES Modules
asyncAwait: true, // Async/await
optionalChaining: true, // obj?.prop
nullishCoalescing: true, // value ?? default
destructuring: true, // const { a, b } = obj
spreadOperator: true, // [...arr, newItem]
templateLiterals: true, // `${var}`
arrowFunctions: true, // () => {}
};
// Avoid
const avoid = {
var: true, // Use const/let
callbacks: 'Use promises/async',
jquery: 'Use native APIs',
};
```
---
## 2. Animation Libraries
### GSAP (GreenSock)
```
THE INDUSTRY STANDARD
├── Power: Most capable animation library
├── Performance: Optimized for 60fps
├── Ecosystem: ScrollTrigger, SplitText, MorphSVG
└── License: Free for most uses, paid for some plugins
INSTALLATION
npm install gsap
CORE PLUGINS (free)
├── ScrollTrigger - scroll-based animations
├── Observer - scroll/touch/pointer tracking
├── Draggable - drag interactions
└── MotionPath - animate along SVG paths
CLUB PLUGINS (paid)
├── SplitText - text splitting for animation
├── MorphSVG - shape morphing
├── DrawSVG - line drawing effects
├── ScrollSmoother - smooth scroll + ScrollTrigger
└── Flip - layout animations
```
```javascript
// GSAP initialization pattern
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);
// Set defaults
gsap.defaults({
ease: "expo.out",
duration: 1
});
// Basic animation
gsap.to(".element", {
x: 100,
opacity: 1,
duration: 0.8
});
// Timeline
const tl = gsap.timeline();
tl.to(".first", { x: 100 })
.to(".second", { x: 100 }, "-=0.5") // overlap
.to(".third", { x: 100 }, "+=0.2"); // gap
```
### Motion (Framer Motion)
```
REACT-SPECIFIC
├── Declarative API
├── Layout animations
├── Gesture support
├── Exit animations
└── Server-side rendering support
INSTALLATION
npm install motion
```
```jsx
// Motion usage
import { motion, AnimatePresence } from "motion/react";
// Basic animation
```
### Font Optimization
```html
```
### Code Splitting
```javascript
// Dynamic imports
const HeavyComponent = lazy(() => import('./HeavyComponent'));
// Route-based splitting (Next.js automatic)
// Each page is a separate chunk
// Manual chunk with Vite
// vite.config.js
export default {
build: {
rollupOptions: {
output: {
manualChunks: {
vendor: ['gsap', 'three'],
},
},
},
},
};
```
### Critical CSS
```javascript
// Extract critical CSS with Critters (Vite plugin)
// npm install critters
import critters from 'critters';
// Or inline critical styles manually
```
---
## 7. Deployment & Hosting
### Recommended Platforms
```
STATIC SITES
├── Vercel: Best for Next.js, excellent DX
├── Netlify: Great for Jamstack, easy deploys
├── Cloudflare Pages: Fast edge network
└── GitHub Pages: Free, simple static hosting
FULL-STACK
├── Vercel: Serverless functions, edge middleware
├── Railway: Containers, databases
├── Render: Full infrastructure
└── AWS Amplify: AWS ecosystem
CDN FOR ASSETS
├── Cloudflare: Free tier, global
├── AWS CloudFront: Enterprise scale
├── Bunny CDN: Cost-effective, fast
└── Imgix/Cloudinary: Image-specific CDN
```
### Performance Checklist
```
PRE-LAUNCH
□ Images optimized (WebP/AVIF, lazy loaded)
□ Fonts subset and preloaded
□ CSS/JS minified and compressed
□ Gzip/Brotli compression enabled
□ HTTP/2 or HTTP/3 enabled
□ Cache headers configured
□ Critical CSS inlined
□ Unused CSS/JS removed
MONITORING
□ Lighthouse CI in deployment
□ Core Web Vitals tracking
□ Real User Monitoring (RUM)
□ Error tracking (Sentry, etc.)
```