Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Animações com CSS3 | Animations with CSS3
Search
Juliana Negreiros
May 12, 2018
Technology
23
0
Share
Animações com CSS3 | Animations with CSS3
- SorocabaCSS 3ª edição (12/05/2018)
Juliana Negreiros
May 12, 2018
More Decks by Juliana Negreiros
See All by Juliana Negreiros
Um guia para começar no mundo Front End
juunegreiros
0
340
Desmistificando a área de TI
juunegreiros
0
86
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
440
Introdução ao Git
juunegreiros
0
63
Webpacker e a Jornada do Heroi
juunegreiros
0
35
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
92
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
81
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
67
Carreiras em TI
juunegreiros
0
60
Other Decks in Technology
See All in Technology
ぼくがかんがえたさいきょうのあうとぷっと
yama3133
0
190
弁護士ドットコム株式会社 エンジニア職向け 会社紹介資料
bengo4com
1
160
M5Stack CoreS3とZephyr(RTOS)で Edge AIっぽいことしてみた
iotengineer22
0
240
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
23k
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
300
AI와 협업하는 조직으로의 여정
arawn
0
460
AndroidアプリとCopilot Studioの統合
nakasho
0
110
20年前の「OSS革命」に学ぶ AI時代の生存戦略
samakada
0
440
AI時代 に増える データ活用先
takahal
0
230
AWS DevOps Agentはチームメイトになれるのか?/ Can AWS DevOps Agent become a teammate
kinunori
6
740
目的ファーストのハーネス設計 ~ハーネスの変更容易性を高めるための優先順位~
gotalab555
8
2.2k
エージェントスキルを作って自分のインプットに役立てよう
tsubakimoto_s
0
380
Featured
See All Featured
From π to Pie charts
rasagy
0
170
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Side Projects
sachag
455
43k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
250
How to train your dragon (web standard)
notwaldorf
97
6.6k
Writing Fast Ruby
sferik
630
63k
A better future with KSS
kneath
240
18k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
760
A Modern Web Designer's Workflow
chriscoyier
698
190k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
230
AI: The stuff that nobody shows you
jnunemaker
PRO
6
570
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Transcript
ANIMAÇÕES COM CSS3
juliana negreiros @juunegreiros
Por que usamos animações?
Comunicação: o mundo é movimento!
reações à ações importam
Era uma vez...
E então o Hover aconteceu!
E COM ELE UM MUNDO NOVO REPLETO DE OPORTUNIDADES PARA
INOVAR A ENTREGA DE INFORMAÇÕES PARA O USUÁRIO <3
MICROINTERAÇÕES
CARROSSEL
BOTÕES DE STATUS
LOADING
MENU HAMBÚRGUER
QUANDO USAMOS ANIMAÇÕES?
ANIMAÇÕES TEM QUE TER UM PROPÓSITO!
DESTACAR LOCAIS QUE possuam INTERAÇÕES
adicionar e remover arquivos
contar histórias
chamar atenção
SEM EXAGEROS!
DIVERTIR O USUÁRIO!
POR QUE CSS AO INVÉS DE JS?
SE SUA ANIMAÇÃO QUEBRAR, SÓ A SUA ANIMAÇÃO QUEBROU
VELOCIDADE DE PROCESSAMENTO
MANUTENÇÃO
COMO ANIMAR AS COISAS?
None
transition
.botao { background-color: red; transition: background-color 2s fade-in; } .botao:hover
{ background-color: blue; }
Quando usar?
propriedades transition: propriedade duração time-function delay;
Duration .botao { transition-duration: 2s; }
timing function .botao { transition-timing-function: ease; }
None
delay .botao { transition-delay: 1s; }
animations
@keyframes animar { 0%{ transform: scale(1); } 50% { transform:
scale(1.5); } 100%{ transform: scale(.5); } } .botao { animation: animar 1s; }
Quando usar?
propriedades
name .botao { animation-name: animar; }
duration .botao { animation-duration: 2s; }
timing function .botao { animation-timing-function: ease; }
Delay .botao { animation-delay: 0s; }
iteration count .botao { animation-iteration-count: 1; }
direction .botao { animation-direction: normal; }
fill mode .botao { animation-fill-mode: none; }
play state .botao { animation-play-state: running; }
transform
matrix translate scale rotate perspective
filter
por onde começar?
o que eu quero fazer?
None
de quais elementos vou precisar?
quais movimentos meus elementos irão fazer?
Codepen
animações com svg
scalable vector graphics
coordenadas
None
js + css
controlar estados da animação
codepen
can i use
aceitação
não esqueça dos prefixos <3
referências
youmightnotneedj s caniuse css-tricks
obrigada!