Giter Site home page Giter Site logo

youtube-form-animate-css-js-puro's Introduction

Formulário animado com JS puro e CSS Animation

Desafios

  • Fazer o formulário aparecer, suavemente, quando a página abrir
  • Fazer os campos aparecem da esquerda pra direita, suavizando a entrada e fazendo-os entrar em momentos distintos
  • Quando clicar em Login, fazer o formulário sair da tela, indo para baixo
  • Remover formulário do html e não mostrar rolagem enquanto o formulário está saindo da tela
  • Adicionar um efeito diferente de timing para a saída do formulário
  • Fazer o formulário dizer não-não (vibrar) caso haja campos vazios.
  • Criar alguns quadrados animados (que fiquem girando) e que saem de baixo da tela (fora do campo de visão) e vão para cima da tela (que saia do campo de visão também). Detalhes: Deve ter tamanhos diferentes, sairem em momentos diferentes, terem timing diferente, animação contínua.

Animation

8 propriedades:

  • animation-name: animationname;
  • animation-duration: 2s;
  • animation-delay: 3s;
  • animation-fill-mode: none;
  • animation-play-state: running;
  • animation-timing-function: ease;
  • animation-direction: reverse;
  • animation-iteration-count: infinite;
@keyframes animationname {
  0% {

  }

  100%{

  }
}

podemos ter múltiplas animações no mesmo elemento

.animate {
  animation: slide-top 2s, bounce 1s, fade 0.2s;
}

References

CSS Animation Docs

Animation Timing Docs

Site para criar animações

Site para criar cubic Bézier timming

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.