Marketplace
Made in Webflow

3D Button with Custom CSS - #3dbuttonchallenge

1174 views
site profile thumbnail

Description

Trying my hand at solving @fry's 3D button hover animation problem. In this method, I've gotten it down to 2 elements in the designer (a background, and a "button" div), the rest of the work is done in the CSS you'll find in the Page settings. The CSS here is creating two pseudo-elements, the triangles that animate alongside the button when you hover over the background element. The background & button element combo is super reusable, and you can make style changes to your copied buttons (background color, font styles, sizing, etc) just by adding a secondary class, that doesn't break the custom code! The main quirk is that if you want to change the background color, you'll also want to change the border colors in the CSS to match, as I just have them set to white right now (as you can see in the 3rd example where I changed the background but not the border colors. I may continue to try to find a way to tie the border color to the background color.
Feeling inspired?If this Made In Webflow site sparked some inspo, why not get started on a project of your own? Clone a site, purchase a template or start building from scratch.
csscustom code3dbuttoncloneablebuttonbackground-change

More by Avengr

See profile
View details
Large Glossary (1000+ items) Pagination
83
298