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
0
21
Animações com CSS3 | Animations with CSS3
- SorocabaCSS 3ª edição (12/05/2018)
Juliana Negreiros
May 12, 2018
Tweet
Share
More Decks by Juliana Negreiros
See All by Juliana Negreiros
Um guia para começar no mundo Front End
juunegreiros
0
320
Desmistificando a área de TI
juunegreiros
0
50
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
420
Introdução ao Git
juunegreiros
0
34
Webpacker e a Jornada do Heroi
juunegreiros
0
18
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
67
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
69
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
49
Carreiras em TI
juunegreiros
0
47
Other Decks in Technology
See All in Technology
IPUT App Dev. Co. -Overview 2024/4
iputapp
0
120
地理空間データ可視化・解析・活用ソリューション Pacific Spatial Solutions (PSS)
pacificspatialsolutions
0
330
Handling focus in 2024
tahia910
0
200
2024春 注目のWeb系 OSS & SaaS 3選
makies
0
170
TechFeed Experts Night#27 〜 フロントエンドフレームワーク最前線 (Svelte)
baseballyama
2
590
JSON攻略法.pdf
miyakemito
8
5.2k
EM完全に理解した と思ったけど、 やっぱり何も分からなかった話 / EM Night Fukuoka #1
hirutas
0
270
生成AIの変革の時代に、直近1年で直面した課題とその解決策
ktc_wada
0
510
いいたいことちゃんという
tkengo
0
220
【SORACOM UG 東海】あらゆるモノがつながる社会へ、IoT と SORACOM
soracom
PRO
1
130
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
430
R3のコードから見る実践LINQ実装最適化・コンカレントプログラミング実例
neuecc
3
1.9k
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
228
16k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
64
14k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
222
21k
Music & Morning Musume
bryan
41
5.6k
Testing 201, or: Great Expectations
jmmastey
29
6.4k
How GitHub (no longer) Works
holman
305
140k
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2k
Done Done
chrislema
178
15k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
Agile that works and the tools we love
rasmusluckow
325
20k
4 Signs Your Business is Dying
shpigford
176
21k
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!