Giter Site home page Giter Site logo

juanfer2 / animated-web-components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edvilme/animated-web-components

0.0 0.0 0.0 584 KB

Basic periodic animations using a single tag with Web Components

License: GNU General Public License v3.0

JavaScript 83.88% HTML 16.12%

animated-web-components's Introduction

Animated Web Components

Last Commit

Contributors

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

$ git clone https://github.com/edvilme/animated-web-components.git

Go into the repository

$ cd animated-web-components

Install dependencies

$ npm install animated-web-components

NPM Install

Load NPM module in your HTML File

<script src="./node_modules/animated-web-components/index.js" type="module">

HTML Script Tage

Using a Content Delivery Network (CDN)

If you prerfer, you can use Unpkg.com

<script src="://unpkg.com/animated-web-components/index.js" type="module">

Unpkg Tag

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

Usage

Floating Random Thing

Use this tag to make its content float around its parent. Can be set to duplicate on click

<section>
    <floating-random-thing animation-range="20" animation-speed="100" duplicates="true" auto="true">
        <p>Hello</p>
    </floating-random-thing>
</section>

Web-Component-tag

Typing element

Use this tag to make a text content appear as if it were being typed.

<section>
    <typing-element animation-speed="0.1" animation-enabled="true">
        <p>Hello World!</p>
    </typing-element>
</section>

Typing

Rich HTML can also be used to display complex content:

<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

Notes

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

How to Contribute

  1. Clone repo and create a new branch:
    $ 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

edvilme
Eduardo Villalpando Mello
anthonyalvarez
Anthony E. Alvarez
izhar360
Muhammad Izhar
jiteshj2
Jiteshj2
Smollet777
Smollet777

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.