Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css button added #5163

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Animations-CSS/Stop button_CSS/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>new button</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div >
<Button class="btn"><span></span>End</span></Button>
</div>
</body>
</html>
53 changes: 53 additions & 0 deletions Animations-CSS/Stop button_CSS/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
display: flex;
min-height: 100vh;
justify-content: center;
align-items: center;
background-color: #410000;
}

.btn{
font-size: 25px;
padding: 30px;
border-radius: 50%;
background-color: rgb(252, 54, 54);
color: #350000;
border-radius: 50%;
border: solid;
border-color: #350000;
transition: 1s;
}

.btn:hover{
font-size: 25px;
padding: 30px;
border-radius: 50%;
background-color: rgb(200, 32, 32);
color: #640000;
border-radius: 50%;
border-color: #794040;
transition: 1s;
animation: glowing 1s infinite alternate;
}

@keyframes glowing {
0% {
background-color: rgb(255, 92, 42);
box-shadow: 0 0 3px rgb(226, 73, 73);
}
50% {
background-color: rgb(192, 76, 52);
box-shadow: 0 0 10px rgb(198, 65, 65);
}
100% {
background-color: rgb(255, 92, 42);
box-shadow: 0 0 3px rgb(226, 73, 73);
}
}