Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/edvilme/animated-web-components

Basic periodic animations using a single tag with Web Components
https://github.com/edvilme/animated-web-components

animation hacktoberfest webcomponents

Last synced: 3 days ago
JSON representation

Basic periodic animations using a single tag with Web Components

Awesome Lists containing this project

README

        

![Animated Web Components](img/Animated_Web_Components.png)

![Last Commit](https://img.shields.io/github/last-commit/edvilme/animated-web-components)

![Contributors](https://img.shields.io/github/contributors/edvilme/animated-web-components)

# Animated Web Components

Content on the web is increasingly _less static_. However adding even simple animations can be repetitive and verbose. This library uses Web Components to provide animations to objects inside a page. Still in development, more will be added soon.

## How To Use
To clone and run this, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

### Clone this repository
```bash
$ git clone https://github.com/edvilme/animated-web-components.git
```

### Go into the repository
```bash
$ cd animated-web-components
```

### Install dependencies
```bash
$ npm install animated-web-components
```
![NPM Install](img/npm-install.png)

### Load NPM module in your HTML File
```html

```
![HTML Script Tage](img/HTML-Script-Tag.png)

### Using a Content Delivery Network (CDN)
If you prerfer, you can use [Unpkg.com](https://unpkg.com)
```html
<script src="://unpkg.com/animated-web-components/index.js" type="module">
```

![Unpkg Tag](img/Uppkg-tag.png)

> Important! The script is to be executed as a **module** regardless of the installation

## Usage

### Bouncing Ball
Use this tag to create a bouncing ball that will bounce forever.
```html
<section>
<bouncing-ball color="green" radius="20" animation-speed="0.1" animation-enabled="true">
<div>

</div>
</bouncing-ball>
</section>
```

### Floating Random Thing
Use this tag to make its content float around its parent. Can be set to duplicate on click
```html
<section>
<floating-random-thing animation-range="20" animation-speed="100" duplicates="true" auto="true">
<p>Hello</p>
</floating-random-thing>
</section>
```
![Web-Component-tag](img/web-component-tag.png)

### Typing element
Use this tag to make a text content appear as if it were being typed.
```html
<section>
<typing-element animation-speed="0.1" animation-enabled="true">
<p>Hello World!</p>
</typing-element>
</section>

```
![Typing](img/typing-tag.png)

Rich HTML can also be used to display complex content:
```html
<section>
<typing-element animation-speed="0.1" animation-enabled="true">
<div>
<h1>Web Technologies</h1>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>Javascrtip</li>
</ul>
</div>
</typing-element>
</section>
```

![Typeing2](img/typing-tag2.png)

## Notes

> Important! Remember that all children must be wrapped in a **single** tag.

## How to Contribute
1. Clone repo and create a new branch:
```bash
$ git checkout https://github.com/edvilme/animated-web-components.git -b name_for_new_branch
```
2. Make changes and test
3. Submit Pull Request with comprehensive description of changes

## License

> GPL-3.0

## Contributors

<!-- readme: contributors -start -->
<table>
<tr>
<td align="center">
<a href="https://github.com/edvilme">
<img src="https://avatars.githubusercontent.com/u/5952839?v=4" width="100;" alt="edvilme"/>
<br />
<sub><b>Eduardo Villalpando Mello</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/anthonyalvarez">
<img src="https://avatars.githubusercontent.com/u/1598435?v=4" width="100;" alt="anthonyalvarez"/>
<br />
<sub><b>Anthony E. Alvarez</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/izhar360">
<img src="https://avatars.githubusercontent.com/u/79567009?v=4" width="100;" alt="izhar360"/>
<br />
<sub><b>Muhammad Izhar</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/jiteshj2">
<img src="https://avatars.githubusercontent.com/u/15423087?v=4" width="100;" alt="jiteshj2"/>
<br />
<sub><b>Jiteshj2</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/jasmine-9000">
<img src="https://avatars.githubusercontent.com/u/56411604?v=4" width="100;" alt="jasmine-9000"/>
<br />
<sub><b>Jasmine</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Smollet777">
<img src="https://avatars.githubusercontent.com/u/41921653?v=4" width="100;" alt="Smollet777"/>
<br />
<sub><b>Smollet777</b></sub>
</a>
</td></tr>
</table>
<!-- readme: contributors -end -->