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
CSS3 - Transitions
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Vicente Mundim
May 24, 2013
Technology
0
98
CSS3 - Transitions
O que são CSS3 transitions? Por que e como usar esse recurso para criar interfaces mais ricas.
Vicente Mundim
May 24, 2013
Tweet
Share
More Decks by Vicente Mundim
See All by Vicente Mundim
Index your Salesforce data in Elasticsearch using the Streaming API
vicentemundim
0
1.4k
Other Decks in Technology
See All in Technology
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
180
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
450
プロポーザルに込める段取り八分
shoheimitani
1
180
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.6k
入社1ヶ月でデータパイプライン講座を作った話
waiwai2111
1
250
Data Hubグループ 紹介資料
sansan33
PRO
0
2.7k
セキュリティについて学ぶ会 / 2026 01 25 Takamatsu WordPress Meetup
rocketmartue
1
290
外部キー制約の知っておいて欲しいこと - RDBMSを正しく使うために必要なこと / FOREIGN KEY Night
soudai
PRO
12
4.9k
使いにくいの壁を突破する
sansantech
PRO
1
120
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
360
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Utilizing Notion as your number one productivity tool
mfonobong
3
220
Information Architects: The Missing Link in Design Systems
soysaucechin
0
770
Paper Plane (Part 1)
katiecoart
PRO
0
4k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Balancing Empowerment & Direction
lara
5
880
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
930
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
140
Designing for Timeless Needs
cassininazir
0
130
Transcript
CSS 3 Transitions V i c e n t e
M u n d i m
Por que?
Quero mover um elemento para a direita... .box { position:
absolute; left: 0; }
Uhmm... Sem graça, não curti :( .box { position: absolute;
left: 0; } .box { position: absolute; left: 200px; }
Agora, com transitions! .box { position: absolute; left: 0; transition:
left 1s ease-in-out; } .box { position: absolute; left: 200px; } Muito melhor!
Agora, com transitions! .box { position: absolute; left: 0; transition:
left 1s ease-in-out; } .box { position: absolute; left: 200px; } Muito melhor!
Como definir transition-property: Propriedade que terá a transição transition-duration: Duração
em segundos ou milisegundos da transição transition-timing-function: Função que determina como os valores são computados. transition-delay: Tempo até que a transição comece a acontecer
Definindo no CSS .all { transition: all 1s ease-out; }
.left { transition: left 1s ease-in 0.5s; } .right.bottom { transition-property: right, bottom; transition-delay: 0.5s; transition-duration: 1s; transition-timing-function: ease-out, ease-in; }
O que pode ser alterado Cores em geral (background-color, border-
color, color, etc) Largura, altura, posicionamento (left, right, top, bottom), margem, padding. Tamanhos de fonte, line-height, word- spacing, etc https://developer.mozilla.org/en-US/docs/ Web/CSS/CSS_animated_properties
Quem pode ser alterado Praticamente qualquer elemento que possa ter
alguma propriedade animada.
Gotchas Propriedade display, ou como fazer um fade in/out. Onde
colocar a propriedade transition?
Compatibilidade http://caniuse.com/#feat=css-transitions
Resources https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/ Using_CSS_transitions http://blog.alexmaccaw.com/css-transitions http://www.css3maker.com/css3-transition.html
Obrigado!