Glass Button in Framer

Copy component

Glass Button in Framer

Copy component

Nandi Muzsik

How can I improve Framer Uni?

Let me know if there’s a missing feature or something that could be improved.

Share feedback

Nandi Muzsik

How can I improve Framer Uni?

Let me know if there’s a missing feature or something that could be improved.

Share feedback

Component

Glass Button in Framer

This is a Framer recreation of the glass button interaction originally created by Petr Knoll. Remix the project to explore how this glass effect can be built in Framer without any code.

image of Nandi Muzsik
image of Prianca S.
Image of Petr Knoll

Created by

,

and

Glassmorphic generate button with cursor hover effect
Glassmorphic generate button with cursor hover effect
Glassmorphic generate button with cursor hover effect

About the resource

To create the glass button, I set up three states: Default, Hover, and Pressed.

In the base state, there are two text layers. I added an inner shadow effect using a frame with a black border and some blur, then wrapped it with a linear mask to add depth.

For the shine, I used a linear fill frame on top, and for the tiny dots in the background, I added a tiled fill. The moving shadows on hover come from two shadow stacks, one on the left and one on the right. Each uses a blurred gradient image with adjusted opacity to match the lighting. I also added a soft drop shadow to the whole button and a 3D depth layer underneath using 3D transforms.

On hover, the button scales up slightly, and the depth layer shifts to move the shadows. The two text layers also merge here for a smoother look.

In the pressed state, the button and depth layer rotate a bit on the X-axis, with an extra inner shadow added for that pressed feel. Finally, the variants are connected with Mouse Enter and Mouse Leave interactions.

About the resource

To create the glass button, I set up three states: Default, Hover, and Pressed.

In the base state, there are two text layers. I added an inner shadow effect using a frame with a black border and some blur, then wrapped it with a linear mask to add depth.

For the shine, I used a linear fill frame on top, and for the tiny dots in the background, I added a tiled fill. The moving shadows on hover come from two shadow stacks, one on the left and one on the right. Each uses a blurred gradient image with adjusted opacity to match the lighting. I also added a soft drop shadow to the whole button and a 3D depth layer underneath using 3D transforms.

On hover, the button scales up slightly, and the depth layer shifts to move the shadows. The two text layers also merge here for a smoother look.

In the pressed state, the button and depth layer rotate a bit on the X-axis, with an extra inner shadow added for that pressed feel. Finally, the variants are connected with Mouse Enter and Mouse Leave interactions.

About the resource

To create the glass button, I set up three states: Default, Hover, and Pressed.

In the base state, there are two text layers. I added an inner shadow effect using a frame with a black border and some blur, then wrapped it with a linear mask to add depth.

For the shine, I used a linear fill frame on top, and for the tiny dots in the background, I added a tiled fill. The moving shadows on hover come from two shadow stacks, one on the left and one on the right. Each uses a blurred gradient image with adjusted opacity to match the lighting. I also added a soft drop shadow to the whole button and a 3D depth layer underneath using 3D transforms.

On hover, the button scales up slightly, and the depth layer shifts to move the shadows. The two text layers also merge here for a smoother look.

In the pressed state, the button and depth layer rotate a bit on the X-axis, with an extra inner shadow added for that pressed feel. Finally, the variants are connected with Mouse Enter and Mouse Leave interactions.

Glassmorphic generate button UI showing hover and pressed states

The three variants of the glass button component.

Glassmorphic generate button UI showing hover and pressed states

The three variants of the glass button component.

Glassmorphic generate button UI showing hover and pressed states

The three variants of the glass button component.

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

More resources

More resources

  • Onboarding folder icon with fifteen PDF files

    Grey Folder Interaction in Framer

    Component

    Onboarding folder icon with fifteen PDF files

    Grey Folder Interaction in Framer

    Component

    Onboarding folder icon with fifteen PDF files

    Grey Folder Interaction in Framer

    Component

  • Stacked card UI design with article preview

    Card Stack Hover Animation in Framer

    Component

    Stacked card UI design with article preview

    Card Stack Hover Animation in Framer

    Component

    Stacked card UI design with article preview

    Card Stack Hover Animation in Framer

    Component