Skip to content
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
10 changes: 10 additions & 0 deletions HTML+CSS+JS/Checklist/Checklist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Checklist
Checklist to check which things are done.

## Demo
![image](https://user-images.githubusercontent.com/94389020/161442108-dec96754-0534-49b8-8b51-10892b8d85f8.png)
## Setup
Just download and open index.html.

## Author
[Sanskruti Palekar](https://github.com/SanskrutiPalekar/)
38 changes: 38 additions & 0 deletions HTML+CSS+JS/Checklist/Checklist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!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">
<link rel="stylesheet" href="style.css">
<title>Checklist</title>
</head>

<body>
<div class="list">
<label>
<input type="checkbox" name="">
<i></i>
<span>Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>
</label>
</div>
<div class="list">
<label>
<input type="checkbox" name="">
<i></i>
<span>Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>
<br>
</label>
</div>
<div class="list">
<label>
<input type="checkbox" name="">
<i></i>
<span>Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>

</label>
</div>
</body>

</html>
76 changes: 76 additions & 0 deletions HTML+CSS+JS/Checklist/Checklist/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
*{
padding: 0;
margin: 0;
}
body{
min-height: 100vh;
align-items: center;
display: flex;
justify-content: center;
}
.list{
padding: 40px;
position: relative;
background: #042b3e;
border-top: 50px solid #03a9f4;
}
.list label{
position: relative;
display: block;
margin: 40px 0;
color: #fff;
font-size: 24px;
cursor: pointer;
}
.list input[type="checkbox"]{
-webkit-appearance: none;
}
.list i{
position: absolute;
top: 0;
display: inline-block;
width: 25px;
height: 25px;
border: 2px solid #fff;
}
.list input[type="checkbox"]:checked ~ i{
top: 1px;
border-top: none;
border-right: none;
height: 15px;
width: 25px;
transform: rotate(-45deg);
}
.list span{
position: relative;
left: 40px;
transition: 0.5s;
}
.list input[type="checkbox"]{
top: 1px;
border-top: none;
border-right: none;
height: 25px;
width: 25px;
}
.list span:before{
content: '';
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 1px;
background: #fff;
transform: translateY(-50%) scaleX(0);
transform-origin: right;
transition: transform 0.5s;

}
.list input[type="checkbox"]:checked ~span:before{
transform: translateY(-50%) scaleX(1);
transform-origin: right;
transition: transform 0.5s;
}
.list input[type="checkbox"]:checked ~span:before{
color: #154e6b;
}