Outline Button or Ghost Button : Icon on Hover

takaneichinose

Takane Ichinose

Posted on June 17, 2019

Outline Button or Ghost Button : Icon on Hover

Description

Outline button (or Ghost button): When hovered, the icon hidden from the left side will show.

There are small, and large size for these buttons.

I used Font Awesome for the icon font. Some others may be used, I think.

Style can be easily customized, and also, almost all of the customizable styles are stored in a variable.

How to use

<!--
Available classes:
.default (Dark grey button)
.primary (Blue button)
.success (Green button)
.warning (Yellow button)
.danger  Red button)
-->
<button class="btn-outline success">
    <i class="fas fa-check-circle"></i><!-- All of the icons from FontAwesome may be used -->
    <span>success</span>
</button>
Enter fullscreen mode Exit fullscreen mode

πŸ’– πŸ’ͺ πŸ™… 🚩
takaneichinose
Takane Ichinose

Posted on June 17, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Multicolour reflections from text
codepen Multicolour reflections from text

February 7, 2022

CSS Peasant
codepen CSS Peasant

February 24, 2021

Drawing a cartoon in CSS
codepen Drawing a cartoon in CSS

December 21, 2020

CSS Silhouette
codepen CSS Silhouette

October 15, 2020

#CodepenChallenge 100 DIVS: Living Room
codepen #CodepenChallenge 100 DIVS: Living Room

September 9, 2020