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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
100
20260204_Midosuji_Tech
takuyay0ne
1
140
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3.8k
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.1k
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.3k
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
190
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
340
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
530
変化するコーディングエージェントとの現実的な付き合い方 〜Cursor安定択説と、ツールに依存しない「資産」〜
empitsu
4
1.3k
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
240
Featured
See All Featured
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
Speed Design
sergeychernyshev
33
1.5k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
110
Product Roadmaps are Hard
iamctodd
PRO
55
12k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Balancing Empowerment & Direction
lara
5
880
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
0
1.9k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
92
How to make the Groovebox
asonas
2
1.9k
The Language of Interfaces
destraynor
162
26k
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!