Engineering Architecture Innovation

Code, Meet
Cognition.

I write about building the future of the web with Artificial Intelligence, scaling WordPress, and crafting UIs with React.

Areas of Focus

Trending

Artificial Intelligence

Engineering the cognitive web. Tutorials on integrating LLMs, building agents, and prompt engineering for developers.

💻

Modern WordPress

Block API, FSE, & Headless
⚛️

React Ecosystem

Next.js, Hooks, & Patterns
The Journal

Latest Deep Dives

css/animation-snippets.ts

// Useful CSS animation snippets for common UI interactions including fade, slide, and hover effects.

Common CSS animation patterns for smooth UI interactions.

## Fade In

```css
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}
```

## Slide In

```css
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}
```

## Hover Scale

```css
.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}
```

## Pulse Animation

```css
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}
```

## Smooth Transition

```css
.smooth {
    transition: all 0.3s ease;
}
```

## Features

- Smooth animations
- Performance optimized
- Easy to customize
- Cross-browser compatible

Powered By

Next.js
Cloudflare
OpenAI
WordPress
Tailwind CSS