Code Monkey home page Code Monkey logo

all-animation / all-animation Goto Github PK

View Code? Open in Web Editor NEW
491.0 34.0 139.0 11.89 MB

All Animation.css is a set of nice and crazy css animations made with the purpose to bring life and interactions to your project. They are cross-browser animations which will give more emphases on your pages likes sliding controls and 3D efects...

Home Page: https://all-animation.github.io

JavaScript 1.24% HTML 2.78% SCSS 95.98%
css all-animation animations animation animation-css css-animations scss

all-animation's Introduction

All Animation

All Animation.css is a set of nice and crazy css animations made with the purpose to bring life and interactions to your project. They are cross-browser animations which will give more emphases on your pages likes sliding controls and 3D efects...

You can view the website here -- We are going to change our layout soon

Translations

V3 is now ready to be used!

It's already on npm, but we're still improving our documentation and api.

New modules will also be released on the future, the first one will be:

  • all-animation/react 🥰🥰

How to use:

It's easy to use, let's see step by step:

Step 1, install the library as dependency

It's pretty straight forward:

npm install all-animation

or

yarn add all-animation

Step 2, link the library into your project:

Currently there's thwo ways of linking all animation into your project:

Via SCSS imports:

In your main scss file of your project, just include the all-animation module, like:

// main.scss
@import "../node_modules/all-animation/scss/main"

After that you should be ready to use our library.

Loading only specific animations

In case you don't want to have the whole all-animations on your final bundle, you can import the specific animation which you want together with core all-animation dependencies:

// Core all-animation dependencies, like variables and mixins
@import "../node_modules/all-animation/scss/config/_config";

// The specific animation which you want to use
// in this case "a-bomb"
@import "../node_modules/all-animation/scss/modules/bomb/bomb"

Link directly via CSS file you can also download the css file and put it before closing the </head> tag:

<link rel="stylesheet" type="text/css" href="node_modules/all-animaton/dist/all-animation.css" />

We also include the source maps of it, so you can have a better debugging visibility during development

Step 2, HTML:

<div id="animation"></div>

<button class="anny-class">Trigger class, go!</button>

Step 3, jQuery (You can also use plain javascript):

$(".any-class").click(() =>{
 $("#animation").addClass("a-journal");
});

Optional

If you want to add the effect at some specified time, just place a timer:

Example, triggering an animation in a particular element after 2 seconds:

setTimeout(() =>{
 $("#animation").addClass("a-journal");
}, 2000);

Caution:

If you want to add some animation on an element that had another animation, or you want to restart the animation previously triggered, you have to remove the last animation and trigger the new one. Example:

 $("#animation").removeClass("a-journal").addClass("a-four-rock");

We have several classes for animations:

Specials:

  • a-dance
  • a-journal
  • a-pulse
  • a-pulse-slow
  • a-jamp
  • a-four-rock

Bounce:

  • a-enter-up-bounce
  • a-enter-down-bounce
  • a-enter-right-bounce
  • a-enter-left-bounce
  • a-scale-bounce
  • a-jump-bounce

Perspective:

For using the perspective animations, please add a parent container with a class a-perspective, like:

<div class="a-perspective">
    <!-- Your animated code here, like: -->
    <div class="a-three-flip-up">...</div>
</div>

Some classes for

  • a-three-flip-right
  • a-three-flip-up
  • a-three-flip-down
  • a-flip-left-bounce
  • a-rotate-flip
  • a-flip-right-bounce

Fading Entrances:

  • a-flip-top
  • a-flip-left
  • a-flip-right
  • a-flip-bottom

Rotate:

  • a-rotate-flip-down
  • a-rotate-down-bounce
  • a-rotate-out

Agrecives:

  • a-flash-bang
  • a-bomb

Jello

  • a-jello-horizontal
  • a-jello-vertical

Vibrate

  • a-vibrate-low
  • a-vibrate-medium
  • a-vibrate-high

Wobble

  • a-wobble-bottom
  • a-wobble-left
  • a-wobble-right
  • a-wobble-top


Contributors:

If you want to contribute to our project, read the file: contributing.md 😊

Credits:

Clóvis Neto

all-animation's People

Contributors

afonsopacifer avatar arthurmichel avatar clovisdasilvaneto avatar gabrielsimoest avatar imakecodes avatar inodaf avatar jocelio avatar lucasbento avatar powy1993 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

all-animation's Issues

Scroll

Consigo adicionar as animacoes quando vou dando rolagem na pag?

Legend Flip

Olá, galera, tudo bom?
Estou com um problema de Cross Browser no efeito legend flip.
Ele funciona normalmente no Chrome, mas não está funcionando no firefox.
Quando ocorre o efeito de giro, o background não aparece. Somente no chrome aparece...
Agradeço desde já...

A problem with rotate-row -- syntax error

/***** Infinites ******/

.rotate-row {
  opacity: 1 !important;
  -webkit-animation: rotateRow infinite alternate 3s linear;
  -moz-animation: rotateRow infinite alternate 3s linear;
  -ms-animation: rotateRow infinite alternate 3s linear;
  -o-animation: rotateRow infinite alternate 3s linear;
  animation: rotateRow infinite alternate 3s linear;
}
@-webkit-keyframes rotateRow {
  0%, 10% {
    -webkit-transform: translateY(0);
  }
  5% {
    -webkit-transform: translateY(-20px);
  }
  100% {
    -webkit-transform: rotate(20000deg) translateY(0px);
  }
}
@-moz-keyframes rotateRow {
  0%, 10% {
    -moz-transform: translateY(0);
  }
  5% {
    -moz-transform: translateY(-20px);
  }
  100% {
    -moz-transform: rotate(20000deg) translateY(0px);
  }
}
@-ms-keyframes rotateRow {
  0%, 10% {
    -ms-transform: translateY(0);
  }
  5% {
    -ms-transform: translateY(-20px);
  }
  100% {
    -ms-transform: rotate(20000deg) translateY(0px);
  }
}
@-o-keyframes rotateRow {
  0%, 10% {
    -ms-transform: translateY(0);
  }
  5% {
    -ms-transform: translateY(-20px);
  }
  100% {
    -o-transform: rotate(20000deg) translateY(0px);
  }
}
///////////////////////------------------HERE-----------------////////////////////////////////
@-keyframes rotateRow { /*here it is showing some error --- Syntax error*/
  0%,
  10% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-20px);
  }
  100% {
    transform: rotate(20000deg) translateY(0px);
  }
}

Navbar on documentation not working properly

🐛 Bug Report

When navbar itens are clicked the page does not scroll

To Reproduce

allanimation

When any of the options in the navbar are clicked the page stills the same

Expected Behavior

smoothscroll

When any of the options are clicked the page should have a smooth scroll animation to the right position

@RochaCarla

New structure - proposal

Proposal

Initially , to facilitate the organization of the project , I think a good idea to create an organization for divide the repositories.

Proposal for organization:

all-animation/all-animation

The core project.

All animations and original css file (and min file) with all the original classes.

all-animation/all-animation.github.io

The website, containing all the documentation.

we have the benefit of changing the URL:
clovisdasilvaneto.github.io/all-animation
to
all-animation.github.io

all-animation/all-animation-sass

Semantic version

The idea is not depend to the classes for add animations , we will use mixins or placeholders to add animations(maintain semantic HTML and clean)

all-animation/all-animation-stylus

Semantic version

The idea is not depend to the classes for add animations , we will use mixins or placeholders to add animations(maintain semantic HTML and clean)

Note: This is the first step to scale the project , we still have to define things related documentation and languages ​​that will be used

Parse the animations components from Stylus to SCSS

We need to refactory the animations located in the stylus files and after that, parse from stylus to scss.

Animations to be refactored

v1-v2.0 v3.0
Agreccives need refactoy
Bounce need refactoy
Especials need refactoy ⚠️
Fading Entrances need refactoy ⚠️
Infinites need refactoy ⚠️
Legend need refactoy ⚠️
Perspective need refactoy ⚠️
Portrait need refactoy ⚠️
Rotate need refactoy - Has bug ⚠️

Animations to change from stylus to sass

v1-v2.0 v3.0
Agreccives need refactoy ⚠️
Bounce need refactoy ⚠️
Especials need refactoy ⚠️
Fading Entrances need refactoy ⚠️
Infinites need refactoy ⚠️
Legend need refactoy ⚠️
Perspective need refactoy ⚠️
Portrait need refactoy ⚠️
Rotate need refactoy - Has bug ⚠️

Suggestions

As @afonsopacifer suggest in this issue #19, we can refactory the structure but can stay with the stylus and scss files. What do you think @all-animation/infrastructure team?

Parse All Animation website from Electric

Because good documentation is a must, and your project deserves better than a readme file.

Electric is a Node.js static generator that accelerates the process of writing detailed documentation sites.

Parse website to electric

For improvement of our framework, we need to improve our documentation the as soon as possible.

I've found the ElectricJs, wich is a amazing documentation generator made by Liferay and I decided to use it.

Improvements

We'll have a very good site documentation.

gh-pages com conteúdo duplicado

Faaala @clovisdasilvaneto,
Então, existem muitos arquivos relacionados a documentação e outras coisas na gh-pages,
grande parte desse conteúdo já está na branch master. O problema é que fica dificil manter tudo atualizado, já que na master já tem dois idiomas para manter. A minha sugestão é deixar a gh-pages como um ambiente de produção mesmo, deixando só os arquivos do site, as demais documentações ficam na master que é a default.

Para não ter que ficar dando "deploy" na mão para a gh-pages toda hora, eu sugiro criar uma task no gulp para fazer isso, é assim que eu tenho usado nos meus projetos e tem ficado de boas :)

Se vc achar legal, eu posso mandar um PR com essas alterações ;)

Aproveitando: Feliz Ano Novo!

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.