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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Juliana Negreiros
May 12, 2018
Technology
0
23
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
340
Desmistificando a área de TI
juunegreiros
0
84
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
440
Introdução ao Git
juunegreiros
0
60
Webpacker e a Jornada do Heroi
juunegreiros
0
34
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
91
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
78
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
66
Carreiras em TI
juunegreiros
0
60
Other Decks in Technology
See All in Technology
楽しく学ぼう!コミュニティ入門 AWSと人が つむいできたストーリー
hiroramos4
PRO
1
180
クラウド時代における一時権限取得
krrrr38
1
180
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
8
7.1k
組織全体で実現する標準監視設計
yuobayashi
2
380
AIファーストを前提とした開発スタイルの変化
sbtechnight
0
250
Databricksアシスタントが自分で考えて動く時代に! エージェントモード体験もくもく会
taka_aki
0
370
S3はフラットである –AWS公式SDKにも存在した、 署名付きURLにおけるパストラバーサル脆弱性– / JAWS DAYS 2026
flatt_security
0
1.6k
トップマネジメントとコンピテンシーから考えるエンジニアリングマネジメント
zigorou
4
800
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
4
1.1k
「Blue Team Labs Online」入門 - みんなで挑むログ解析バトル
v_avenger
0
130
「ストレッチゾーンに挑戦し続ける」ことって難しくないですか? メンバーの持続的成長を支えるEMの環境設計
sansantech
PRO
3
490
マネージャー版 "提案のレベル" を上げる
konifar
21
14k
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
3
360
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
97
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
370
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
Unsuck your backbone
ammeep
672
58k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
140
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
89
Everyday Curiosity
cassininazir
0
160
Utilizing Notion as your number one productivity tool
mfonobong
4
250
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!