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
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
LLM 機能を支える Langfuse / ClickHouse のサーバレス化
yuu26
9
2.5k
【OptimizationNight】数理最適化のラストワンマイルとしてのUIUX
brainpadpr
2
520
アカデミーキャンプ 2025 SuuuuuuMMeR「燃えろ!!ロボコン」 / Academy Camp 2025 SuuuuuuMMeR "Burn the Spirit, Robocon!!" DAY 1
ks91
PRO
0
150
マルチプロダクト×マルチテナントを支えるモジュラモノリスを中心としたアソビューのアーキテクチャ
disc99
1
630
メルカリIBIS:AIが拓く次世代インシデント対応
0gm
2
390
リモートワークで心掛けていること 〜AI活用編〜
naoki85
0
180
Jamf Connect ZTNAとMDMで実現! 金融ベンチャーにおける「デバイストラスト」実例と軌跡 / Kyash Device Trust
rela1470
1
200
Claude Codeは仕様駆動の夢を見ない
gotalab555
23
7k
Delegate authentication and a lot more to Keycloak with OpenID Connect
ahus1
0
240
全員が手を動かす組織へ - 生成AIが変えるTVerの開発現場 / everyone-codes-genai-transforms-tver-development
tohae
0
220
サイボウズフロントエンドの横断活動から考える AI時代にできること
mugi_uno
0
160
PL/pgSQLの基本と使い所
tameguro
2
230
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Done Done
chrislema
185
16k
Art, The Web, and Tiny UX
lynnandtonic
301
21k
Rails Girls Zürich Keynote
gr2m
95
14k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.8k
Documentation Writing (for coders)
carmenintech
73
5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
Scaling GitHub
holman
462
140k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
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!