AI Skill Library

Advanced CSS Effects

Glassmorphism, neumorphism, gradients, masks, filters, blend modes, clip-path.

cssfrontenddesigneffects
# Advanced CSS Effects

## Glassmorphism
```css
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
/* Dark glass */
.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
```

## Neumorphism (soft UI)
```css
.neu {
  background: #e0e5ec;
  border-radius: 16px;
  box-shadow: 8px 8px 16px #b8bec7, -8px -8px 16px #ffffff;
}
.neu:active {
  box-shadow: inset 4px 4px 8px #b8bec7, inset -4px -4px 8px #ffffff;
}
```

## Gradients
```css
/* Linear */
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

/* Radial */
background: radial-gradient(circle at 30% 50%, #ff6b6b, #4ecdc4);

/* Conic (color wheel) */
background: conic-gradient(from 0deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6b6b);

/* Animated gradient */
.gradient-animate {
  background: linear-gradient(270deg, #ff6b6b, #4ecdc4, #45b7d1, #96e6a1);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Mesh gradient */
.mesh {
  background-color: #f5a623;
  background-image:
    radial-gradient(at 20% 30%, #ff6b6b 0px, transparent 50%),
    radial-gradient(at 80% 10%, #4ecdc4 0px, transparent 50%),
    radial-gradient(at 50% 80%, #764ba2 0px, transparent 50%);
}
```

## clip-path shapes
```css
.hero    { clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
.diamond { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.circle  { clip-path: circle(50%); }
.blob    { clip-path: path('M40,0 C65,-5 100,30 100,60 C100,85 70,110 45,105 C20,100 -5,75 0,50 C5,25 15,5 40,0'); }
/* Hover reveal */
.img-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 0.6s ease; }
.img-reveal:hover { clip-path: inset(0 0% 0 0); }
```

## CSS filters
```css
.blur     { filter: blur(8px); }
.glow     { filter: drop-shadow(0 0 12px #4ecdc4); }
.vintage  { filter: sepia(0.5) saturate(0.8) brightness(1.1); }
.dark-img { filter: invert(1) hue-rotate(180deg); }
/* Hover color pop */
.card img { filter: grayscale(1); transition: filter 0.3s; }
.card:hover img { filter: grayscale(0); }
```

## Blend modes
```css
/* Multiply, Screen, Overlay, Color, Luminosity */
.text-overlay {
  mix-blend-mode: overlay;
  color: white;
  font-size: 5rem;
  font-weight: 900;
}
.bg-blend {
  background-image: url(photo.jpg), linear-gradient(#ff6b6b, #4ecdc4);
  background-blend-mode: multiply;
}
```

## CSS masks
```css
.fade-bottom {
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.text-mask {
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
```

API: /api/skills/advanced-css-effects