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

Best ToDo-Application using javascript

To Do Application  What is To Do List? ToDoList is a type of software which is used for managing your productive workflow.It is also called "Getting things done" (GTD), scheduling and collaboration. ToDoList is general-purpose, Windows-based software, which can be used for simple “honey do” home lists or to manage complex multi-user projects for business. In addition to tracking the status of tasks, ToDoList includes a powerful system for logging and reporting time spent on tasks. Combined with powerful reporting mechanisms, this makes ToDoList an effective tool for client billing. About My To Do Application So as you can read the above intro of ToDO-Application, I build this with very easy way and you can also try this for enhance or revise your JavaScript concepts. The code is simple and easy to understand, if you are new to JavaScript and web development then this tutorial is for you.I tried my best to design it for user friendly and keep it simple.Here is some screen sh

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;              background: rgb(129, 133, 131);padding-top:2px;       background-image: linear-gradient(to right, rgba(122, 184, 93, 0.678), rgba(135, 172, 141, 0.404), rgba(202, 200, 200, 0.521)); " ></span></h1>          

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 &quo