Skip to content

Instantly share code, notes, and snippets.

@jacky810124
Created July 29, 2020 04:16
Show Gist options
  • Save jacky810124/71f13c7d71210078708765fb4ee3e10a to your computer and use it in GitHub Desktop.
Save jacky810124/71f13c7d71210078708765fb4ee3e10a to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>JS Bin</title>
<style>
.progress-bar-wrapper {
position: relative;
background-color: #c8c8c8;
width: 100px;
height: 4px;
border-radius: 100px;
}
.progress-bar-wrapper::after {
position: absolute;
border-radius: 100px;
height: 100%;
width: 60px;
display: block;
background-image: linear-gradient(
to right,
rgb(194, 229, 156),
rgb(100, 179, 244)
);
content: '';
transition: width 0.4s;
}
</style>
</head>
<body>
<div class="progress-bar-wrapper" data-width="80"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment