# Button

Preview Full HTML

index.html

<html>

<head>
    <title>Basic Button</title>
    <link rel="stylesheet" href="style.css">
</head>

</html>

<body>
    <button>Click me</button>
    <h1>-------------Hover--------------</h1>
    <button class="btn1">Click me</button>
    <h1>-------------Animation--------------</h1>
    <button class="btn2">Button 2</button>
</body>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

style.css

body {
    background-color: black;
}

h1 {
    color: white;
}

.btn1 {
    background-color: transparent;
    border: 3px solid white;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.btn1:hover {
    background-color: yellow;
    color: black
}

.btn2 {
    background-color: transparent;
    border: 3px solid white;
    color: white;
    padding: 10px;
    border-radius: 5px;
    transition: all 1s;
}

.btn2:hover {
    transform: rotateZ(90deg) translateX(30px) skewY(10deg) scale(1.2);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32