Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rofixro/css-3d-progress

3D Progress Bar
https://github.com/rofixro/css-3d-progress

progress-bar react svelte vue webcomponents

Last synced: 14 days ago
JSON representation

3D Progress Bar

Lists

README

        

![logo](logo.png)

A 3D progress bar component written using web Components, supports Vue, React and Svelte.

## Install

```bash
npm install css-3d-progress
```

## Usage

### Web Components

```html



css-3d-progress



body {
margin: 0;
height: 100vh;
display: grid;
place-items: center;
background-color: #d0d0d0;
}






```

### Vue

```vue

import "css-3d-progress";
import { ref } from "vue";

const percent = ref(60);



```

### React

```jsx
import "css-3d-progress";
import { useState } from "react";

function App() {
const [percent] = useState(60);
const style = { width: "20em" };

return (
<>




>
);
}

export default App;
```

### Svelte

```svelte

import "css-3d-progress";

const percent = 60;



```

## Options

| Name | Type | Default | Description |
| ------------- | ------ | ---------------------------- | -------------------------------- |
| percent | string | 0 | To set the completion percentage |
| is-animation | string | false | Whether to enable flow effects |
| stroke-color | string | \#ec008c99 | The color of progress bar |
| trail-color | string | \#fefefe4d | The color of unfilled part |
| back-shadow | string | -0.5em -1.5em 4em \#ec008ccc | Box-shadow on back |
| bottom-shadow | string | 0em 0em 2em \#ec008ccc | Box-shadow on bottom |

## Badge

[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

## Related Efforts

* [Pure CSS Progress](https://codepen.io/rgg/pen/QbRyOq)
* [3D Progress Bars [Day 04]](https://codepen.io/dhiisti/pen/JjGMjOQ)

## License

[MIT](LICENSE)