# Hover zoom image (C 005)

Category: Cards  
Tags: content, basic, image-top, hover-zoom, light  
Page: https://designforai.dev/snippet/card-005

## Prompt

Create a borderless 300px card: a 190px image frame with 12px radius and overflow hidden containing a radial gradient (circle at 30% 30%, #f9a8d4 to #c084fc to #7e22ce). Below it an 18px title in #18181b and 14px text in #52525b. On hover scale the image to 1.08 over 600ms with a cubic-bezier(.2,.8,.2,1) ease, and underline the title with 3px offset.

## HTML

```html
<article class="card-005">
  <div class="card-005__frame"><div class="card-005__img"></div></div>
  <h3>Motion that explains</h3>
  <p>Use easing to tell users where things went.</p>
</article>
```

## CSS

```css
.card-005 {
  width: 300px;
  font-family: system-ui,sans-serif;
  color: #18181b
}
.card-005__frame {
  height: 190px;
  border-radius: 12px;
  overflow: hidden
}
.card-005__img {
  height: 100%;
  background: radial-gradient(circle at 30% 30%,#f9a8d4,#c084fc 60%,#7e22ce);
  transition: transform .6s cubic-bezier(.2,.8,.2,1)
}
.card-005:hover .card-005__img {
  transform: scale(1.08)
}
.card-005 h3 {
  margin: 14px 0 4px;
  font-size: 18px
}
.card-005 p {
  margin: 0;
  font-size: 14px;
  color: #52525b
}
.card-005:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px
}
```
