Skip to main content

GLASS EFFECTS HOVER BUTTONS

GLASS EFFECT HOVER BUTTONS 


Hey Folks ✋!

Today I'am going to show you how you can build "Beautiful Glass Effect Hover Button"
But first of all you must know what is "Hover-Effect".

HOVER:

Applies to any element being hovered by the user's pointing device, but not activated.
There are three pseudo-classes that allow you to change the appearance of elements when a user is interacting with them.
  1. HOVER
  2. ACTIVE
  3. FOCUS
but we focus only hover today and clear our concept 😃😊.


WHEN WE APPLIED HOVER?

This is applied when a user hovers over an element with a pointing device such as a mouse. 
This has commonly been used to change the appearance of links and buttons when a user 
places their cursor over them. It is worth noting that such events do not work on devices that use touch screens (such as the iPad) because the screen is not able to tell when someone is hovering their finger over an element.


EXAMPLE OUTPUT






SOURCE CODE

HTML:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <link rel="stylesheet" href="hover.css">
    <title>Hover Effect</title>
</head>
<body>
    <button>Hover Me <span></span>
    </button>
    <button>Hover Me <span></span>
    </button>
    <h4>By @Future Developer</h4>
</body>
</html>


CSS:

*{
margin0;
padding:0;
box-sizingborder-box;
font-familysans-serif;
}
body{
    height100vh;
    displayflex;
    align-itemscenter;
    justify-contentcenter;
    background-color:#2e2e2e;
}
button{
    cursorpointer;
    width180px;
    height50px;
    line-height50px;
    font-size18px;
    letter-spacing1px;
    margin60px;
    border0;
    outline0;
    border-radius1px;
   backgroundtransparent;
    overflowhidden;
    transition.4s;
    
}
button:nth-child(1){
    color: rgb(9191163);
    border1px solid;
}

button:nth-child(2){
    color#ee4a22;
    border1px solid;
}

button:nth-child(1):hover {
    background-color: rgb(9191163);
   color#222121;
}

button:nth-child(2):hover {
    background-color#ee4a22;
   color#222121;
}
button span{
    displayflex;
    width100px;
    height10px;
    background#f0eeee;
    filter: blur(8px);
    transform: rotate(110deg)translateX(10px) translateY(100px);
    transition.7s;
    
}
button:hover span {
    transform: rotate(110deg)translateX(-80px) translateY(-140px);
    
}

h4{
    positionabsolute;
   coloraliceblue;
   top85%;
align-itemscenter;
text-aligncenter;
  
}







Comments

Popular posts from this blog

Login & Signup forms using Html & CSS

  Login /Signup Form  Using Html & CSS Hello hope you all are fine :-), today I'm going to make Login and signup form by using html & css it is very easy to create just like a piece of cake! Login Form Index.Html <!DOCTYPE   html > <html   lang = "en" >      <head>      <meta   charset = "UTF-8" >      <meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      <title> Join-Us </title>          <link   rel = "stylesheet"   href = "join-us.css" >     </head> <body>    <div   class = "form" >      <h1> Login  <span><hr   style = "  border: 0;       height: 1px;          ...

Best Ui Dark Calculator using Html,Css and Javascript

   How to Create a  Calculator  Introduction Calculator is one of the basic projects of JavaScript or any other languages a newbie programmer should probably know how to create it.The best thing of this is that the coding is short and easy to understand . It is a basic project that perform arithmetical operations. All you have to do is to create a button for each number, arithmetic operations. symbols and then add a text-box or input-field. Here is the Output of Dark Calculator : Output: Source Code : Index.html: Here is the html coding :) <!DOCTYPE html> <html  lang =" en "> <head> <meta  charset =" UTF-8 "> <meta  name =" viewport "  content =" width=device-width, initial-scale=1.0 "> <title> Dark Calculator </title> <link  rel =" stylesheet "  href =" styel.css "> </head> <body> <div  class =" main "> <div> <input  id =" result ...

Netflix Logo with CSS

  Netflix Logo With CSS Hello Folks! today I'am going to share with you a "Netflix" logo design with CSS code is easy and simple even 10y/o child could try.   Let's see our Source Code : If you know Html and CSS very well then this post is just a piece of cake with you not and hard and fast coding is applied just span tag i choose and design it accordingly. Index.html  <div class=" container ">     <span></span>     <span></span>     <span></span>   </div>  Style.CSS   body { background:#26242e; } .container{   position:absolute;   top:30%;   left:50%;   display:flex;   width:120px;   height:200px;   overflow:hidden; } span {   position:absolute;   width:40px;   height:200px;   background:#d81f26 } span :nth-child(1){   right:0; } span :nth-child(2){   left:40px;   z-index:1;   transform:skew(22deg); ...