w3tweaks.com
  • Effects
    • Scroll Effects
    • Text Effects
    • Shadow
  • Essentials
    • Arrows
    • Buttons
    • Background Patterns
    • Border Examples
    • Cards
    • Color Palettes
    • Dividers
    • Link styles
    • Loaders
    • Modal Windows
    • Notifications
    • Progress bar
    • Quote styles
    • Spinner
    • Tooltips
  • Media
    • Calendars
    • Carousels
    • Clocks
    • Gallery
    • Music Players
    • Sliders
    • Slideshows
    • Tables
    • Thumbnails
  • Navigation
  • Inputs
    • Range Sliders
    • Checkboxes
    • Toggle Switches
  • Script
    • Angularjs
    • Backbone.js
    • bootstrap
    • jQuery
    • ReactJs
    • JavaScript
    • Syntax Highlighters
    • tryit editor
    • PHP
  • API’s
    • Facebook
    • Google
    • Indeed
    • Twitter
    • YouTube
  • Tools
w3tweaks.com
Home Essentials

Simple pure CSS button hover effect

September 25, 2019
in Essentials

Simple awesome pure CSS button hover effect. Developed using html, css, vanilla-tilt.js and JavaScript. Demo and download available.

You might also like

15 Free CSS Floating action buttons

13 Free CSS Ripple Effect Buttons

15 Inspiring Button Animation Examples with Demo: Elevate Your User Experience

Custom radio button using CSS only

T-shirt cannon playful animated button concept

Chat bubble smoothly morphs into a “close” X

Demo Download

AuthorJulia
CreatedFEBRUARY 14, 2017
LicenseOpen
Compatible browsersChrome, Firefox, Safari
[ads1]

HTML Snippet

<div class="button_container"> 	<p class="description">A simple pure CSS hover effect</p> 	<button class="btn"><span>Hover me!</span></button> </div>

CSS Code

@import url('https://fonts.googleapis.com/css?family=Amatic+SC');  body { 	margin: 0; 	height: 100%; 	background-image: linear-gradient(to top, #d9afd9 0%, #97d9e1 100%); 	background-repeat: no-repeat;   background-size: cover;   background-attachment: fixed; }  .button_container { 	position: absolute;   left: 0;   right: 0;   top: 30%; }  .description, .link {   font-family: 'Amatic SC', cursive;   text-align: center; }  .description { 	font-size: 35px; }  .btn {   border: none;   display: block;   text-align: center;   cursor: pointer;   text-transform: uppercase;   outline: none;   overflow: hidden;   position: relative;   color: #fff;   font-weight: 700;   font-size: 15px;   background-color: #222;   padding: 17px 60px;   margin: 0 auto;   box-shadow: 0 5px 15px rgba(0,0,0,0.20); }  .btn span {   position: relative;    z-index: 1; }  .btn:after {   content: "";   position: absolute;   left: 0;   top: 0;   height: 490%;   width: 140%;   background: #78c7d2;   -webkit-transition: all .5s ease-in-out;   transition: all .5s ease-in-out;   -webkit-transform: translateX(-98%) translateY(-25%) rotate(45deg);   transform: translateX(-98%) translateY(-25%) rotate(45deg); }  .btn:hover:after {   -webkit-transform: translateX(-9%) translateY(-25%) rotate(45deg);   transform: translateX(-9%) translateY(-25%) rotate(45deg); }  .link {   font-size: 20px;   margin-top: 30px; }  .link a {   color: #000;   font-size: 25px;  }

Preview

Simple pure CSS button hover effect Preview

Tags: Buttonbutton hover effectButtonsclick buttonsCSScss buttonscss hover effectseffecthoverhover animationHover effectshtmlmouse hover effectspuresimplesimple buttons
Previous Post

3D Tilt Parallax Effect with Mouse Movement

Next Post

Pure CSS button Effects

Related Stories

CSS Floating action buttons
Essentials

15 Free CSS Floating action buttons

March 20, 2023
Free CSS Ripple Effect Button
Essentials

13 Free CSS Ripple Effect Buttons

March 6, 2023
15 Inspiring Button Animation Examples with Demo: Elevate Your User Experience
Essentials

15 Inspiring Button Animation Examples with Demo: Elevate Your User Experience

February 24, 2023
Pill Styled Radio ButtonsPill Styled Radio Buttons
Essentials

Custom radio button using CSS only

December 10, 2020
t-shirt cannon playful animated button concept
Essentials

T-shirt cannon playful animated button concept

October 13, 2020
chat bubble smoothly morphs into a "close" X
Essentials

Chat bubble smoothly morphs into a “close” X

October 13, 2020
Clipped Overlapping Grid Items
Essentials

Clipped Overlapping Grid Items

September 30, 2020
Exciting Multi-line Highlights
Essentials

Exciting Multi-line Highlights

September 21, 2020

Discussion about this post

Follow Us

Popular Posts

100 Creative CSS Cards

44 Free Multi step HTML forms

13 Free HTML & CSS Dashboard Template Designs

49 CSS Tables

20 HTML & CSS pricing tables

14 Best CSS Dark Mode

11 CSS Shopping Cart UI/UX

42 Cool CSS Avatars For Better UI

55 Useful handpicked CSS Buttons with examples and demos

89 Best CSS Toggle Switches

w3tweaks

We bring you the best frontend collections that will fix perfect for news, magazine, personal blog, etc. Check our landing page for details.

  • Effects
    • Scroll Effects
    • Text Effects
    • Shadow
  • Essentials
    • Arrows
    • Buttons
    • Background Patterns
    • Border Examples
    • Cards
    • Color Palettes
    • Dividers
    • Link styles
    • Loaders
    • Modal Windows
    • Notifications
    • Progress bar
    • Quote styles
    • Spinner
    • Tooltips
  • Media
    • Calendars
    • Carousels
    • Clocks
    • Gallery
    • Music Players
    • Sliders
    • Slideshows
    • Tables
    • Thumbnails
  • Navigation
  • Inputs
    • Range Sliders
    • Checkboxes
    • Toggle Switches
  • Script
    • Angularjs
    • Backbone.js
    • bootstrap
    • jQuery
    • ReactJs
    • JavaScript
    • Syntax Highlighters
    • tryit editor
    • PHP
  • API’s
    • Facebook
    • Google
    • Indeed
    • Twitter
    • YouTube
  • Tools