Published on April 12, 2019

Tutorial: Animated Hexagon Buttons with CSS Transforms in Oxygen

In this tutorial, you’ll learn how to create custom animated buttons using the new CSS Transforms feature in Oxygen 2.2.

With Oxygen’s fundamental components and visual CSS manipulation, you can create advanced custom elements without needing pre-built blocks or add-ons.

You can visually style pseudo-elements like :before, :after, and states like :hover using the State Selector in the Properties Pane. Once you’ve applied some styling or CSS transforms to an element’s :hover state, you can set its transition duration under Advanced > Effects > Transition for a smooth hover effect.

In this tutorial, we’ll use link wrappers with classes so that we can style them all at once, and we’ll style their :before and :after pseudo-elements using CSS transforms to make them hexagonal. Finally we’ll apply a saturation filter and transform rotation effect on the link wrappers’ :hover states to make them go from grayscale to full color with a 360 degree rotation on hover.

The Oxygen Team
Updated on: January 30, 2025

You'll build incredible websites with Oxygen

Get started with Oxygen today and unlock incredible value.

Get Oxygen

30-day money back gurantee

Try Oxygen risk-free. If youโ€™re not satisfied, get a full refund within 30 days.

Unlimited site license

Use Oxygen on as many personal or client projects as you want โ€” no limits.

Fast, world-class support

Our experienced team is eager to assist you with technical questions.

Use on client websites

Build and deliver professional-grade websites for your clients with no extra fees.