---
title: HoverEffectComponent.OpacityFunction.blend
framework: realitykit
role: symbol
role_heading: Case
path: realitykit/hovereffectcomponent/opacityfunction/blend
---

# HoverEffectComponent.OpacityFunction.blend

Draws the hover effect with an opacity that’s equal to the product of the entity’s base material and the shader’s output.

## Declaration

```swift
case blend
```

## Discussion

Discussion In this example a rounded black rectangle continuously transitions between transparent and fully opaque. Applying a green highlight hover effect with a blend opacity function to the rectangle causes the hover effect to smoothly transition between transparent and fully opaque.
